LLVM_ENABLE_RTTI := 0
endif
-# Strip out gtest and gtest_main from LLVM_LIBS_TO_EXPORT, these are not
-# installed and won't be available from the install tree.
-LLVM_LIBS_TO_EXPORT := $(filter-out gtest gtest_main,$(LLVM_LIBS_TO_EXPORT))
-
ifndef LLVM_LIBS_TO_EXPORT
$(error LLVM_LIBS_TO_EXPORT cannot be empty)
endif
done && \
cat "$(LLVMBuildCMakeExportsFrag)" && \
echo 'set_property(TARGET LLVMSupport APPEND PROPERTY IMPORTED_LINK_INTERFACE_LIBRARIES '"$(subst -l,,$(LIBS))"')' \
- ) | grep -v gtest > $@
+ ) > $@
all-local:: $(addprefix $(PROJ_OBJ_DIR)/, $(OBJMODS))
def foreach_cmake_library(self, f,
enabled_optional_components,
- skip_disabled):
+ skip_disabled,
+ skip_not_installed):
for ci in self.ordered_component_infos:
# Skip optional components which are not enabled.
if ci.type_name == 'OptionalLibrary' \
if tg and not tg.enabled:
continue
+ # Skip targets that will not be installed
+ if skip_not_installed and not ci.installed:
+ continue
+
f(ci)
for dep in self.get_required_libraries_for_component(ci)))))
,
enabled_optional_components,
- skip_disabled = False
+ skip_disabled = False,
+ skip_not_installed = False # Dependency info must be emitted for internals libs too
)
f.close()
for dep in self.get_required_libraries_for_component(ci)))))
,
enabled_optional_components,
- skip_disabled = True
+ skip_disabled = True,
+ skip_not_installed = True # Do not export internal libraries like gtest
)
f.close()
f.write(' \\\n %s' % ci.get_prefixed_library_name())
,
enabled_optional_components,
- skip_disabled = True
+ skip_disabled = True,
+ skip_not_installed = True # Do not export internal libraries like gtest
)
f.write('\n')
-
f.close()
def add_magic_target_components(parser, project, opts):