[LLVMdev] Problem with compiling the runtime libary
陳韋任
chenwj at iis.sinica.edu.tw
Sun Apr 24 00:57:22 PDT 2011
Hi, Zhao
You can apply the attachment to LLVM 2.9 Release. It has been tested
on FreeBSD/x86.
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
-------------- next part --------------
diff -ruN llvm-2.9/CMakeLists.txt llvm-2.9.new/CMakeLists.txt
--- llvm-2.9/CMakeLists.txt 2011-03-02 06:31:19.000000000 +0800
+++ llvm-2.9.new/CMakeLists.txt 2011-04-24 15:41:07.180714774 +0800
@@ -233,6 +233,13 @@
add_subdirectory(tools)
endif()
+option(LLVM_BUILD_RUNTIME
+ " Build the LLVM runtime. If OFF, just generate build targets." OFF)
+option(LLVM_INCLUDE_RUNTIME "Generate build targets for the LLVM examples" ON)
+if( LLVM_INCLUDE_RUNTIME )
+ add_subdirectory(runtime)
+endif()
+
option(LLVM_BUILD_EXAMPLES
"Build the LLVM example programs. If OFF, just generate build targets." OFF)
option(LLVM_INCLUDE_EXAMPLES "Generate build targets for the LLVM examples" ON)
diff -ruN llvm-2.9/runtime/CMakeLists.txt llvm-2.9.new/runtime/CMakeLists.txt
--- llvm-2.9/runtime/CMakeLists.txt 1970-01-01 08:00:00.000000000 +0800
+++ llvm-2.9.new/runtime/CMakeLists.txt 2011-04-24 15:41:26.915556956 +0800
@@ -0,0 +1 @@
+add_subdirectory(libprofile)
diff -ruN llvm-2.9/runtime/libprofile/CMakeLists.txt llvm-2.9.new/runtime/libprofile/CMakeLists.txt
--- llvm-2.9/runtime/libprofile/CMakeLists.txt 1970-01-01 08:00:00.000000000 +0800
+++ llvm-2.9.new/runtime/libprofile/CMakeLists.txt 2011-04-24 15:41:56.549409372 +0800
@@ -0,0 +1,8 @@
+add_llvm_loadable_module( profile_rt
+ BasicBlockTracing.c
+ CommonProfiling.c
+ PathProfiling.c
+ EdgeProfiling.c
+ OptimalEdgeProfiling.c
+ Profiling.h
+ )
More information about the llvm-dev
mailing list