forked from OSchip/llvm-project
[CMake] Speculative fix for linker error on Linux
I can't reproduce this locally, but I think this may fix it. llvm-svn: 259870
This commit is contained in:
parent
73957179d3
commit
08d92de3f4
|
@ -595,8 +595,8 @@ endif()
|
||||||
set(CLANG_ORDER_FILE ${CMAKE_CURRENT_BINARY_DIR}/clang.order CACHE FILEPATH
|
set(CLANG_ORDER_FILE ${CMAKE_CURRENT_BINARY_DIR}/clang.order CACHE FILEPATH
|
||||||
"Order file to use when compiling clang in order to improve startup time.")
|
"Order file to use when compiling clang in order to improve startup time.")
|
||||||
|
|
||||||
if(NOT EXISTS ${CLANG_ORDER_FILE})
|
if(CLANG_ORDER_FILE AND NOT EXISTS ${CLANG_ORDER_FILE})
|
||||||
execute_process(COMMAND ${CMAKE_COMMAND} -E touch ${CLANG_ORDER_FILE})
|
file(WRITE ${CLANG_ORDER_FILE} "\n")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (CLANG_BUILT_STANDALONE OR CMAKE_VERSION VERSION_EQUAL 3 OR
|
if (CLANG_BUILT_STANDALONE OR CMAKE_VERSION VERSION_EQUAL 3 OR
|
||||||
|
|
Loading…
Reference in New Issue