File tree Expand file tree Collapse file tree 1 file changed +3
-18
lines changed Expand file tree Collapse file tree 1 file changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -35,24 +35,9 @@ if(BOLT_BUILT_STANDALONE)
35
35
list (APPEND CMAKE_MODULE_PATH "${LLVM_DIR} " )
36
36
37
37
# Turn into CACHE PATHs for overwritting
38
-
39
- # We can't check LLVM_CONFIG here, because find_package(LLVM ...) also sets
40
- # LLVM_CONFIG.
41
- if (NOT LLVM_CONFIG_FOUND )
42
- # Pull values from LLVMConfig.cmake. We can drop this once the llvm-config
43
- # path is removed.
44
- set (INCLUDE_DIRS ${LLVM_INCLUDE_DIRS} )
45
- set (LLVM_OBJ_DIR "${LLVM_BINARY_DIR} " )
46
- # N.B. this is just a default value, the CACHE PATHs below can be overridden.
47
- set (MAIN_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR} /../llvm" )
48
- else ()
49
- set (INCLUDE_DIRS "${LLVM_BINARY_DIR} /include" "${MAIN_INCLUDE_DIR} " )
50
- endif ()
51
-
52
- set (LLVM_INCLUDE_DIRS ${INCLUDE_DIRS} CACHE PATH "Path to llvm/include and any other header dirs needed" )
53
- set (LLVM_BINARY_DIR "${LLVM_OBJ_ROOT} " CACHE PATH "Path to LLVM build tree" )
54
- set (LLVM_MAIN_SRC_DIR "${MAIN_SRC_DIR} " CACHE PATH "Path to LLVM source tree" )
55
-
38
+ set (LLVM_INCLUDE_DIRS ${LLVM_INCLUDE_DIRS} CACHE PATH "Path to llvm/include and any other header dirs needed" )
39
+ set (LLVM_BINARY_DIR "${LLVM_BINARY_DIR} " CACHE PATH "Path to LLVM build tree" )
40
+ set (LLVM_MAIN_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR} /../llvm" CACHE PATH "Path to LLVM source tree" )
56
41
set (LLVM_TOOLS_BINARY_DIR "${LLVM_TOOLS_BINARY_DIR} " CACHE PATH "Path to llvm/bin" )
57
42
set (LLVM_LIBRARY_DIR "${LLVM_LIBRARY_DIR} " CACHE PATH "Path to llvm/lib" )
58
43
You can’t perform that action at this time.
0 commit comments