[llvm-branch-commits] [llvm-branch] r81649 - /llvm/branches/release_26/bindings/ocaml/Makefile.ocaml

Tanya Lattner tonic at nondot.org
Sat Sep 12 15:53:30 PDT 2009


Author: tbrethou
Date: Sat Sep 12 17:53:29 2009
New Revision: 81649

URL: http://llvm.org/viewvc/llvm-project?rev=81649&view=rev
Log:
Merge r81547 from mainline to fix PR4820.

Modified:
    llvm/branches/release_26/bindings/ocaml/Makefile.ocaml

Modified: llvm/branches/release_26/bindings/ocaml/Makefile.ocaml
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_26/bindings/ocaml/Makefile.ocaml?rev=81649&r1=81648&r2=81649&view=diff

==============================================================================
--- llvm/branches/release_26/bindings/ocaml/Makefile.ocaml (original)
+++ llvm/branches/release_26/bindings/ocaml/Makefile.ocaml Sat Sep 12 17:53:29 2009
@@ -31,13 +31,16 @@
 OcamlDir := $(LibDir)/ocaml
 
 # Info from llvm-config and similar
+ifndef IS_CLEANING_TARGET
 ifdef UsedComponents
 UsedLibs = $(shell $(LLVM_CONFIG) --libs $(UsedComponents))
 UsedLibNames = $(shell $(LLVM_CONFIG) --libnames $(UsedComponents))
 endif
+endif
 
 # Tools
 OCAMLCFLAGS += -I $(ObjDir) -I $(OcamlDir)
+ifndef IS_CLEANING_TARGET
 ifneq ($(ObjectsO),)
 OCAMLAFLAGS += $(patsubst %,-cclib %, \
                  $(filter-out -L$(LibDir),-l$(LIBRARYNAME) \
@@ -48,6 +51,7 @@
                  $(filter-out -L$(LibDir),$(shell $(LLVM_CONFIG) --ldflags)) \
                                           $(UsedLibs))
 endif
+endif
  
 # -g was introduced in 3.10.0.
 #ifneq ($(ENABLE_OPTIMIZED),1)





More information about the llvm-branch-commits mailing list