Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- build/main.mk.orig Mon Aug 1 04:02:11 2016
- +++ build/main.mk Tue Jan 3 08:13:04 2017
- @@ -325,24 +325,24 @@ COMPILE_FLAGS+=$(TARGET_FLAGS)
- LINK_FLAGS+=$(TARGET_FLAGS)
- # Determine compiler.
- -CXX?=g++
- -WINDRES?=windres
- +#CXX?=g++
- +#WINDRES?=windres
- DEPEND_FLAGS:=
- -ifneq ($(filter %clang++,$(CXX))$(filter clang++%,$(CXX)),)
- - # Enable C++11
- - COMPILE_FLAGS+=-std=c++11
- - # Clang does support -Wunused-macros, but it triggers on SDL's headers,
- - # causing way too many false positives that we cannot fix.
- - COMPILE_FLAGS+=-Wall -Wextra -Wundef -Wno-invalid-offsetof -Wshadow
- - # TODO: Remove the overloading from the code instead.
- - COMPILE_FLAGS+=-Wno-overloaded-virtual
- - # Hardware descriptions can contain constants that are not used in the code
- - # but still useful as documentation.
- - COMPILE_FLAGS+=-Wno-unused-const-variable
- - CC:=$(shell clang++ -print-prog-name=clang)
- - DEPEND_FLAGS+=-MP
- -else
- -ifneq ($(filter %g++,$(CXX))$(filter g++%,$(CXX))$(findstring /g++-,$(CXX)),)
- +#ifneq ($(filter %clang++,$(CXX))$(filter clang++%,$(CXX)),)
- +# # Enable C++11
- +# COMPILE_FLAGS+=-std=c++11
- +# # Clang does support -Wunused-macros, but it triggers on SDL's headers,
- +# # causing way too many false positives that we cannot fix.
- +# COMPILE_FLAGS+=-Wall -Wextra -Wundef -Wno-invalid-offsetof -Wshadow
- +# # TODO: Remove the overloading from the code instead.
- +# COMPILE_FLAGS+=-Wno-overloaded-virtual
- +# # Hardware descriptions can contain constants that are not used in the code
- +# # but still useful as documentation.
- +# COMPILE_FLAGS+=-Wno-unused-const-variable
- +# CC:=$(shell clang++ -print-prog-name=clang)
- +# DEPEND_FLAGS+=-MP
- +#else
- +#ifneq ($(filter %g++,$(CXX))$(filter g++%,$(CXX))$(findstring /g++-,$(CXX)),)
- # Generic compilation flags.
- COMPILE_FLAGS+=-pipe
- # Enable C++11
- @@ -366,16 +366,16 @@ ifneq ($(filter %g++,$(CXX))$(filter g++%,$(CXX))$(fin
- # Empty definition of used headers, so header removal doesn't break things.
- DEPEND_FLAGS+=-MP
- - # Plain C compiler, for the 3rd party libs.
- - CC:=$(subst g++,gcc,$(CXX))
- -else
- - ifneq ($(filter %gcc,$(CXX))$(filter gcc%,$(CXX)),)
- - $(error Set CXX to your "g++" executable instead of "gcc")
- - else
- - $(warning Unsupported compiler: $(CXX), please update Makefile)
- - endif
- -endif
- -endif
- +# # Plain C compiler, for the 3rd party libs.
- +# CC:=$(subst g++,gcc,$(CXX))
- +#else
- +# ifneq ($(filter %gcc,$(CXX))$(filter gcc%,$(CXX)),)
- +# $(error Set CXX to your "g++" executable instead of "gcc")
- +# else
- +# $(warning Unsupported compiler: $(CXX), please update Makefile)
- +# endif
- +#endif
- +#endif
- # Strip binary?
- OPENMSX_STRIP?=false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement