From d14baf450b17d47c80950b59e3dd8844b79821f7 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Thu, 13 Dec 2012 16:07:19 +0000 Subject: Add options to disable building of ARCMT, Rewriter and Static Analyzer in clang. The default remains to build those. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170134 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.config.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile.config.in') diff --git a/Makefile.config.in b/Makefile.config.in index b4ecea631e..3c4f7b7a32 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -222,6 +222,15 @@ ENABLE_LIBCPP = @ENABLE_LIBCPP@ # When ENABLE_CXX11 is enabled, LLVM uses c++11 mode by default to build. ENABLE_CXX11 = @ENABLE_CXX11@ +# When ENABLE_CLANG_ARCMT is enabled, clang will have ARCMigrationTool. +ENABLE_CLANG_ARCMT = @ENABLE_CLANG_ARCMT@ + +# When ENABLE_CLANG_REWRITER is enabled, clang will have Rewriter. +ENABLE_CLANG_REWRITER = @ENABLE_CLANG_REWRITER@ + +# When ENABLE_CLANG_STATIC_ANALYZER is enabled, clang will have StaticAnalyzer. +ENABLE_CLANG_STATIC_ANALYZER = @ENABLE_CLANG_STATIC_ANALYZER@ + # When ENABLE_WERROR is enabled, we'll pass -Werror on the command line ENABLE_WERROR = @ENABLE_WERROR@ -- cgit v1.2.3-18-g5258 From d2f8216ba496b139815aee29052093c1b0d7a996 Mon Sep 17 00:00:00 2001 From: David Greene Date: Wed, 9 Jan 2013 22:11:13 +0000 Subject: Disable -Wuninitialized for gcc If the compiler is gcc, disable variants of -Wuninitialized depending on the gcc version. This gets a lot of false positive warnings out of the build. Generate a new configure for the gcc -Wno-uninitialized fix. Pick up -Wno-uninitialized from configure Add the option -Wno[-maybe]-uninitialized as determined by configure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172006 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.config.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile.config.in') diff --git a/Makefile.config.in b/Makefile.config.in index 3c4f7b7a32..5cb3c58673 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -358,6 +358,10 @@ NO_MISSING_FIELD_INITIALIZERS = @NO_MISSING_FIELD_INITIALIZERS@ NO_VARIADIC_MACROS = @NO_VARIADIC_MACROS@ # -Wcovered-switch-default COVERED_SWITCH_DEFAULT = @COVERED_SWITCH_DEFAULT@ +# -Wno-uninitialized +NO_UNINITIALIZED = @NO_UNINITIALIZED@ +# -Wno-maybe-uninitialized +NO_MAYBE_UNINITIALIZED = @NO_MAYBE_UNINITIALIZED@ # Was polly found in tools/polly? LLVM_HAS_POLLY = @LLVM_HAS_POLLY@ -- cgit v1.2.3-18-g5258 From fbb662f840c2f76988ff9f3f152695632cfc71be Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Wed, 16 Jan 2013 17:27:22 +0000 Subject: Introduce llvm::sys::getProcessTriple() function. In r143502, we renamed getHostTriple() to getDefaultTargetTriple() as part of work to allow the user to supply a different default target triple at configure time. This change also affected the JIT. However, it is inappropriate to use the default target triple in the JIT in most circumstances because this will not necessarily match the current architecture used by the process, leading to illegal instruction and other such errors at run time. Introduce the getProcessTriple() function for use in the JIT and its clients, and cause the JIT to use it. On architectures with a single bitness, the host and process triples are identical. On other architectures, the host triple represents the architecture of the host CPU, while the process triple represents the architecture used by the host CPU to interpret machine code within the current process. For example, when executing 32-bit code on a 64-bit Linux machine, the host triple may be 'x86_64-unknown-linux-gnu', while the process triple may be 'i386-unknown-linux-gnu'. This fixes JIT for the 32-on-64-bit (and vice versa) build on non-Apple platforms. Differential Revision: http://llvm-reviews.chandlerc.com/D254 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172627 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.config.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile.config.in') diff --git a/Makefile.config.in b/Makefile.config.in index 5cb3c58673..10a524fb46 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -134,6 +134,9 @@ BUILD_CXX=@BUILD_CXX@ # Triple for configuring build tools when cross-compiling BUILD_TRIPLE=@build@ +# Target triple (cpu-vendor-os) which LLVM is compiled for +HOST_TRIPLE=@host@ + # Target triple (cpu-vendor-os) for which we should generate code TARGET_TRIPLE=@target@ -- cgit v1.2.3-18-g5258 From 3ef8b0adb4c64b5a8611472850b4991afaf289f1 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 30 Jan 2013 04:07:37 +0000 Subject: build: add --with-python option This adds a new --with-python option to allow configuration of the python binary for building. If not specified, $PATH will be searched for common python binary names (python, python2, python3). If specified, and the path is not executable, it will attempt to search $PATH. Signed-off-by: Saleem Abdulrasool Reviewed-by: Eric Christopher , Daniel Dunbar git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173890 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.config.in | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile.config.in') diff --git a/Makefile.config.in b/Makefile.config.in index 10a524fb46..599ffb0006 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -179,6 +179,7 @@ RANLIB := @RANLIB@ RM := @RM@ SED := @SED@ TAR := @TAR@ +PYTHON := @PYTHON@ # Paths to miscellaneous programs we hope are present but might not be BZIP2 := @BZIP2@ -- cgit v1.2.3-18-g5258 From 11486ffd5ad0d51d9ba338b9c0596d2164e41711 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 31 Jan 2013 01:34:59 +0000 Subject: build: @ENABLE_THREADS@ => @LLVM_ENABLE_THREADS@ Makefile.config does not have the value for ENABLE_THREADS substituted as the variable is called LLVM_ENABLE_THREADS within configure.ac. This was pointed out by zygoloid over IRC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174021 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.config.in') diff --git a/Makefile.config.in b/Makefile.config.in index 599ffb0006..f0f2e0d9ec 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -291,7 +291,7 @@ ENABLE_DOCS = @ENABLE_DOCS@ ENABLE_DOXYGEN = @ENABLE_DOXYGEN@ # Do we want to enable threads? -ENABLE_THREADS := @ENABLE_THREADS@ +ENABLE_THREADS := @LLVM_ENABLE_THREADS@ # Do we want to build with position independent code? ENABLE_PIC := @ENABLE_PIC@ -- cgit v1.2.3-18-g5258 From 1983f54daebc5b4ba0ebb3fbc6ec0abb083f8908 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 31 Jan 2013 22:19:12 +0000 Subject: Add -Wno-nested-anon-types to -pedantic builds of LLVM. This Clang warning catches uses of an extremely minor and widely-available C++ extension (which every C++ compiler I could find supports, but EDG and Clang reject in strict mode). The diagnosed code pattern looks like this: struct X { union { struct { int a; int b; } S; }; }; git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174103 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.config.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile.config.in') diff --git a/Makefile.config.in b/Makefile.config.in index f0f2e0d9ec..c751a0176d 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -366,6 +366,8 @@ COVERED_SWITCH_DEFAULT = @COVERED_SWITCH_DEFAULT@ NO_UNINITIALIZED = @NO_UNINITIALIZED@ # -Wno-maybe-uninitialized NO_MAYBE_UNINITIALIZED = @NO_MAYBE_UNINITIALIZED@ +# -Wno-nested-anon-types +NO_NESTED_ANON_TYPES = @NO_NESTED_ANON_TYPES@ # Was polly found in tools/polly? LLVM_HAS_POLLY = @LLVM_HAS_POLLY@ -- cgit v1.2.3-18-g5258 From 6c440fcea52e27b3befcf2ad5f7dcc58a15a2e58 Mon Sep 17 00:00:00 2001 From: Patrik Hagglund Date: Mon, 4 Feb 2013 08:15:53 +0000 Subject: Pass CPPFLAGS/CFLAGS/CXXFLAGS from the environment of configure to Makefile.config. This is implied at the bottom of the help text of configure (besides CC/CXX/LDFLAGS, already passed to Makefile.config). For backward compatibility, the values of CFLAGS and CXXFLAGS defaults to empty, overriding the default values provided by autoconf (for example, '-g -O2' when CC=gcc'). $(CPP) is not used by our makefiles. Therefore, the value of CPP is not passed to Makefile.config, despite beeing mentioned by 'configure --help'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174313 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.config.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Makefile.config.in') diff --git a/Makefile.config.in b/Makefile.config.in index c751a0176d..d3b57e9f10 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -156,8 +156,17 @@ CXX = @CXX@ # Path to the CC binary, which use used by testcases for native builds. CC := @CC@ +# C/C++ preprocessor flags. +CPPFLAGS += @CPPFLAGS@ + +# C compiler flags. +CFLAGS += @CFLAGS@ + +# C++ compiler flags. +CXXFLAGS += @CXXFLAGS@ + # Linker flags. -LDFLAGS+=@LDFLAGS@ +LDFLAGS += @LDFLAGS@ # Path to the library archiver program. AR_PATH = @AR@ -- cgit v1.2.3-18-g5258