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

Unified Diff: tools/llvm-config/Makefile

Issue 1196003003: Make `llvm-config` detect whether or not LLVM is a shared library. If it is, then only try to link … (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Review changes. Created 5 years, 6 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 | « tools/llvm-config/CMakeLists.txt ('k') | tools/llvm-config/llvm-config.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/llvm-config/Makefile
diff --git a/tools/llvm-config/Makefile b/tools/llvm-config/Makefile
index 1ff8b6f04063353f987adb8e01bd8777f2315282..11e5d3387710af57dae08d2367910de699b61279 100644
--- a/tools/llvm-config/Makefile
+++ b/tools/llvm-config/Makefile
@@ -65,6 +65,12 @@ $(ObjDir)/BuildVariables.inc: $(BUILDVARIABLES_SRCPATH) Makefile $(ObjDir)/.dir
>> temp.sed
$(Verb) $(ECHO) 's/@LLVM_TARGETS_BUILT@/$(subst /,\/,$(TARGETS_TO_BUILD))/' \
>> temp.sed
+ $(if $(filter-out $(ENABLE_SHARED),0),\
+ $(Verb) $(ECHO) 's/@BUILD_SHARED_LIBS@/ON/',\
+ $(Verb) $(ECHO) 's/@BUILD_SHARED_LIBS@/OFF/') \
+ >> temp.sed
+ $(Verb) $(ECHO) 's/@WAS_BUILT_WITH_CMAKE@/OFF/' \
+ >> temp.sed
$(Verb) $(SED) -f temp.sed < $< > $@
$(Verb) $(RM) temp.sed
« no previous file with comments | « tools/llvm-config/CMakeLists.txt ('k') | tools/llvm-config/llvm-config.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698