[llvm] 2e1afe5 - try to fix tsan bot
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 6 07:48:49 PDT 2020
Author: Nico Weber
Date: 2020-04-06T10:47:41-04:00
New Revision: 2e1afe5232674cab6edf1efefd0c8c88fb63a594
URL: https://github.com/llvm/llvm-project/commit/2e1afe5232674cab6edf1efefd0c8c88fb63a594
DIFF: https://github.com/llvm/llvm-project/commit/2e1afe5232674cab6edf1efefd0c8c88fb63a594.diff
LOG: try to fix tsan bot
Added:
Modified:
llvm/utils/llvm-lit/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/utils/llvm-lit/CMakeLists.txt b/llvm/utils/llvm-lit/CMakeLists.txt
index 158d10988ffd..5c00f39ab4a5 100644
--- a/llvm/utils/llvm-lit/CMakeLists.txt
+++ b/llvm/utils/llvm-lit/CMakeLists.txt
@@ -13,13 +13,15 @@ if("${CMAKE_CFG_INTDIR}" STREQUAL ".")
endif()
set(LLVM_LIT_CONFIG_MAP "${LLVM_LIT_PATH_FUNCTION}\n")
-foreach(i RANGE 0 ${file_last} 2)
- list(GET LLVM_LIT_CONFIG_FILES ${i} main_config)
- math(EXPR i1 "${i} + 1")
- list(GET LLVM_LIT_CONFIG_FILES ${i1} site_out)
- set(map "map_config(path('${main_config}'), path('${site_out}'))")
- set(LLVM_LIT_CONFIG_MAP "${LLVM_LIT_CONFIG_MAP}\n${map}")
-endforeach()
+if (${file_last} GREATER -1)
+ foreach(i RANGE 0 ${file_last} 2)
+ list(GET LLVM_LIT_CONFIG_FILES ${i} main_config)
+ math(EXPR i1 "${i} + 1")
+ list(GET LLVM_LIT_CONFIG_FILES ${i1} site_out)
+ set(map "map_config(path('${main_config}'), path('${site_out}'))")
+ set(LLVM_LIT_CONFIG_MAP "${LLVM_LIT_CONFIG_MAP}\n${map}")
+ endforeach()
+endif()
set(LLVM_SOURCE_DIR ${LLVM_MAIN_SRC_DIR})
More information about the llvm-commits
mailing list