about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
-rw-r--r--runtime/Makefile.cmake.bitcode.config.in1
-rw-r--r--runtime/Makefile.cmake.bitcode.rules28
2 files changed, 2 insertions, 27 deletions
diff --git a/runtime/Makefile.cmake.bitcode.config.in b/runtime/Makefile.cmake.bitcode.config.in
index 5d1931b8..5916d79a 100644
--- a/runtime/Makefile.cmake.bitcode.config.in
+++ b/runtime/Makefile.cmake.bitcode.config.in
@@ -22,7 +22,6 @@ ROOT_OBJ := @CMAKE_CURRENT_BINARY_DIR@/runtime_build_@KLEE_RUNTIME_BUILD_TYPE@/
 
 # FIXME: For legacy reasons this is where the libraries need to end up
 ARCHIVE_DEST := @KLEE_RUNTIME_DIRECTORY@
-MODULE_DEST := $(ARCHIVE_DEST)
 
 # Build type
 IS_RELEASE := @RUNTIME_IS_RELEASE@
diff --git a/runtime/Makefile.cmake.bitcode.rules b/runtime/Makefile.cmake.bitcode.rules
index 6ad23aed..41b2814e 100644
--- a/runtime/Makefile.cmake.bitcode.rules
+++ b/runtime/Makefile.cmake.bitcode.rules
@@ -140,30 +140,6 @@ clean::
 	@echo "Removing dependency files"
 	$(Verb) $(RM) -f $(BC_FILES:.bc=.dep)
 
-
-ifndef MODULE_NAME
-ifndef ARCHIVE_NAME
-$(error MODULE_NAME or ARCHIVE_NAME must be defined)
-endif
-endif
-
-ifdef MODULE_NAME
-MODULE_FILE := $(MODULE_DEST)/$(MODULE_NAME).bc
-build_at_level:: $(MODULE_FILE)
-
-# Rule for building LLVM bitcode module
-# NOTE: Dependency on $(BC_FILE_LIST_FILE) is to force
-# rebuild when list of BC_FILES changes.
-$(MODULE_FILE): $(BC_FILES) $(BC_FILE_LIST_FILE)
-	$(Verb) $(MKDIR) -p $(MODULE_DEST)
-	@echo "Creating LLVM module $@"
-	$(Verb)$(LLVM_LINK) -o $@ $(BC_FILES)
-
-clean::
-	@echo "Removing LLVM module $(MODULE_FILE)"
-	$(Verb) $(RM) -f $(MODULE_FILE)
-endif # MODULE_NAME
-
 ifdef ARCHIVE_NAME
 ARCHIVE_FILE := $(ARCHIVE_DEST)/lib$(ARCHIVE_NAME).bca
 
@@ -181,7 +157,8 @@ $(ARCHIVE_FILE): $(BC_FILES) $(BC_FILE_LIST_FILE)
 clean::
 	@echo "Removing LLVM bitcode archive $(ARCHIVE_FILE)"
 	$(Verb) $(RM) -f $(ARCHIVE_FILE)
-
+else
+$(error ARCHIVE_NAME must be defined)
 endif # ARCHIVE_NAME
 
 
@@ -207,7 +184,6 @@ debug_vars:
 	@echo "LLVMCC.Flags := $(LLVMCC.Flags)"
 	@echo "LLVMCC.ExtraFlags := $(LLVMCC.ExtraFlags)"
 	@echo "LLVMCC.Warnings := $(LLVMCC.Warnings)"
-	@echo "MODULE_FILE := $(MODULE_FILE)"
 	@echo "ROOT_OBJ := $(ROOT_OBJ)"
 	@echo "RUNTIME_CONFIG_STRING := $(RUNTIME_CONFIG_STRING)"
 	@echo "SRC_DIR := $(SRC_DIR)"