diff --git a/Makefile.rules b/Makefile.rules index acef6608130..4117169f3a3 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -357,7 +357,8 @@ endif # Options To Invoke Tools #---------------------------------------------------------- -CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused +CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused -Wno-long-long \ + -pedantic ifeq ($(OS),HP-UX) CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE diff --git a/lib/System/Makefile b/lib/System/Makefile index d4fc79ce7a0..85de7369fc4 100644 --- a/lib/System/Makefile +++ b/lib/System/Makefile @@ -14,3 +14,6 @@ BUILD_ARCHIVE = 1 EXTRA_DIST = Unix Win32 README.txt include $(LEVEL)/Makefile.common + +CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts)) +CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts)) diff --git a/lib/Target/CBackend/Makefile b/lib/Target/CBackend/Makefile index ac6ff3bb530..9b26d8b8c45 100644 --- a/lib/Target/CBackend/Makefile +++ b/lib/Target/CBackend/Makefile @@ -9,5 +9,4 @@ LEVEL = ../../.. LIBRARYNAME = LLVMCBackend -CXXFLAGS += -pedantic -Wno-long-long include $(LEVEL)/Makefile.common diff --git a/projects/Stacker/lib/runtime/Makefile b/projects/Stacker/lib/runtime/Makefile index d3ebf18fc55..e10b476c6b0 100644 --- a/projects/Stacker/lib/runtime/Makefile +++ b/projects/Stacker/lib/runtime/Makefile @@ -12,3 +12,6 @@ DONT_BUILD_RELINKED = 1 MODULE_NAME = stkr_runtime include $(LEVEL)/Makefile.common + +CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts)) +CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts)) diff --git a/projects/sample/lib/sample/Makefile b/projects/sample/lib/sample/Makefile index 140d7d6703d..6b1ea05361b 100644 --- a/projects/sample/lib/sample/Makefile +++ b/projects/sample/lib/sample/Makefile @@ -19,3 +19,5 @@ LOADABLE_MODULE=1 # include $(LEVEL)/Makefile.common +CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts)) +CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts)) diff --git a/runtime/libdummy/Makefile b/runtime/libdummy/Makefile index 4fa2561b5a0..6dad7bc6093 100644 --- a/runtime/libdummy/Makefile +++ b/runtime/libdummy/Makefile @@ -15,3 +15,5 @@ BYTECODE_DESTINATION = $(CFERuntimeLibDir) include $(LEVEL)/Makefile.common +CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts)) +CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))