Skip to content

Commit eea0470

Browse files
committed
Merge r81547 from mainline to fix PR4820.
llvm-svn: 81649
1 parent 30d355a commit eea0470

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/bindings/ocaml/Makefile.ocaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,16 @@ PROJ_libocamldir := $(DESTDIR)$(OCAML_LIBDIR)
3131
OcamlDir := $(LibDir)/ocaml
3232

3333
# Info from llvm-config and similar
34+
ifndef IS_CLEANING_TARGET
3435
ifdef UsedComponents
3536
UsedLibs = $(shell $(LLVM_CONFIG) --libs $(UsedComponents))
3637
UsedLibNames = $(shell $(LLVM_CONFIG) --libnames $(UsedComponents))
3738
endif
39+
endif
3840

3941
# Tools
4042
OCAMLCFLAGS += -I $(ObjDir) -I $(OcamlDir)
43+
ifndef IS_CLEANING_TARGET
4144
ifneq ($(ObjectsO),)
4245
OCAMLAFLAGS += $(patsubst %,-cclib %, \
4346
$(filter-out -L$(LibDir),-l$(LIBRARYNAME) \
@@ -48,6 +51,7 @@ OCAMLAFLAGS += $(patsubst %,-cclib %, \
4851
$(filter-out -L$(LibDir),$(shell $(LLVM_CONFIG) --ldflags)) \
4952
$(UsedLibs))
5053
endif
54+
endif
5155

5256
# -g was introduced in 3.10.0.
5357
#ifneq ($(ENABLE_OPTIMIZED),1)

0 commit comments

Comments
 (0)