diff --git a/CMakeLists.txt b/CMakeLists.txt index f861fc0..33d0c9a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,8 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -ggdb") # This should be called with the .cc src file and it will generate a # src-file-ir target that can be built. # e.g. COMPILE_TO_IR(test.cc) generates the "test-ir" make target. -set(IR_COMPILE_FLAGS "-emit-llvm" "-O3" "-c") +# Disable compiler optimizations because generated IR is optimized at runtime +set(IR_COMPILE_FLAGS "-emit-llvm" "-c") function(COMPILE_TO_IR SRC_FILE) get_filename_component(BASE_NAME ${SRC_FILE} NAME_WE) set(OUTPUT_FILE "build/${BASE_NAME}.ll")