Commit 46457f2c authored by Administrator's avatar Administrator
Browse files

MacOS vergessen

parent 57993520
...@@ -331,6 +331,8 @@ foreach(src ${CPPSAMPLES}) ...@@ -331,6 +331,8 @@ foreach(src ${CPPSAMPLES})
OUTPUT ${CMAKE_SOURCE_DIR}/output/${src}.ll OUTPUT ${CMAKE_SOURCE_DIR}/output/${src}.ll
COMMAND ${PATH_TO_LLVM}/bin/clang++ --sysroot ${CMAKE_OSX_SYSROOT} -O0 -fno-discard-value-names -emit-llvm ${CMAKE_SOURCE_DIR}/samples/${src}.cpp -Xclang -disable-O0-optnone -c -o ${CMAKE_SOURCE_DIR}/output/${src}.bc COMMAND ${PATH_TO_LLVM}/bin/clang++ --sysroot ${CMAKE_OSX_SYSROOT} -O0 -fno-discard-value-names -emit-llvm ${CMAKE_SOURCE_DIR}/samples/${src}.cpp -Xclang -disable-O0-optnone -c -o ${CMAKE_SOURCE_DIR}/output/${src}.bc
COMMAND ${PATH_TO_LLVM}/bin/opt -S -mem2reg ${CMAKE_SOURCE_DIR}/output/${src}.bc -o ${CMAKE_SOURCE_DIR}/output/${src}.ll COMMAND ${PATH_TO_LLVM}/bin/opt -S -mem2reg ${CMAKE_SOURCE_DIR}/output/${src}.bc -o ${CMAKE_SOURCE_DIR}/output/${src}.ll
COMMAND optdir=${PATH_TO_LLVM}/bin ${CMAKE_SOURCE_DIR}/helpers/lsFunctions.sh ${CMAKE_SOURCE_DIR}/output/${src}.ll
COMMAND optdir=${PATH_TO_LLVM}/bin ${CMAKE_SOURCE_DIR}/helpers/callgraph.sh ${CMAKE_SOURCE_DIR}/output/${src}.ll
DEPENDS clang opt ${CMAKE_SOURCE_DIR}/samples/${src}.cpp DEPENDS clang opt ${CMAKE_SOURCE_DIR}/samples/${src}.cpp
COMMENT "Generating LLVM IR for example ${src}.cpp" COMMENT "Generating LLVM IR for example ${src}.cpp"
) )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment