Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Unified Diff: Makefile.rules

Issue 7730004: add llvm configure flags to enable/disable target OSes/Envs Base URL: https://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Makefile.config.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Makefile.rules
===================================================================
--- Makefile.rules (revision 138335)
+++ Makefile.rules (working copy)
@@ -318,6 +318,16 @@
CPP.Defines += -D_GLIBCXX_DEBUG -DXDEBUG
endif
+# Take the list of TARGET_OSES_TO_BUILD and generate preprocessor symbols
+# indicating that the target OS is enabled.
+CPP.Defines += $(patsubst %,-DLLVM_ENABLED_TARGET_OS_%,\
+ $(shell echo $(TARGET_OSES_TO_BUILD) | tr a-z A-Z))
+
+# Take the list of TARGET_ENVS_TO_BUILD and generate preprocessor symbols
+# indicating that the target environment is enabled.
+CPP.Defines += $(patsubst %,-DLLVM_ENABLED_TARGET_ENV_%,\
+ $(shell echo $(TARGET_ENVS_TO_BUILD) | tr a-z A-Z))
+
# LOADABLE_MODULE implies several other things so we force them to be
# defined/on.
ifdef LOADABLE_MODULE
« no previous file with comments | « no previous file | Makefile.config.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698