summaryrefslogtreecommitdiff
path: root/Makefile.config.in
diff options
context:
space:
mode:
authorPreston Gurd <preston.gurd@intel.com>2012-05-07 19:38:40 +0000
committerPreston Gurd <preston.gurd@intel.com>2012-05-07 19:38:40 +0000
commit754935418133ece1f51d1857a61d538797c34891 (patch)
tree843fa67247a5cea76767ba4b2179c5833de50ea3 /Makefile.config.in
parente74ba3a46d1c86bb218e0d3ba5f28f986eb6e062 (diff)
downloadllvm-754935418133ece1f51d1857a61d538797c34891.tar.gz
llvm-754935418133ece1f51d1857a61d538797c34891.tar.bz2
llvm-754935418133ece1f51d1857a61d538797c34891.tar.xz
Make IntelJITEvents and OProfileJIT as optional libraries and add
optional library support to the llvm-build tool: - Add new command line parameter to llvm-build: “--enable-optional-libraries” - Add handing of new llvm-build library type “OptionalLibrary” - Update Cmake and automake build systems to pass correct flags to llvm-build based on configuration Patch by Dan Malea! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156319 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.config.in')
-rw-r--r--Makefile.config.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.config.in b/Makefile.config.in
index 33fbb2ad4c..2ffdacbe90 100644
--- a/Makefile.config.in
+++ b/Makefile.config.in
@@ -351,3 +351,10 @@ INTEL_JITEVENTS_LIBDIR := @INTEL_JITEVENTS_LIBDIR@
# Flags to control building support for OProfile JIT API
USE_OPROFILE := @USE_OPROFILE@
+
+ifeq ($(USE_INTEL_JITEVENTS), 1)
+ OPTIONAL_COMPONENTS += IntelJITEvents
+endif
+ifeq ($(USE_OPROFILE), 1)
+ OPTIONAL_COMPONENTS += OProfileJIT
+endif