Skip to content

Commit 8e9622f

Browse files
committed
[cmake] Fix cmake warning in standalone compiler-rt builds.
``` cd compiler-rt/build cmake -G Ninja ../ -DCOMPILER_RT_STANDALONE_BUILD=ON -DLLVM_CONFIG_PATH=<...>llvm-project/build/bin/llvm-config -DCOMPILER_RT_INCLUDE_TESTS=ON ``` ``` -- check-shadowcallstack does nothing. Traceback (most recent call last): File "<string>", line 22, in <module> IndexError: list index out of range -- Configuring done -- Generating done ``` Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D88957
1 parent e7cf723 commit 8e9622f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/cmake/modules/AddLLVM.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,6 +1494,7 @@ def relpath(p):\n
14941494
if os.path.splitdrive(p)[0] != os.path.splitdrive(base)[0]: return p\n
14951495
if haslink(p) or haslink(base): return p\n
14961496
return os.path.relpath(p, base)\n
1497+
if len(sys.argv) < 3: sys.exit(0)\n
14971498
sys.stdout.write(';'.join(relpath(p) for p in sys.argv[2].split(';')))"
14981499
${basedir}
14991500
${pathlist_escaped}

0 commit comments

Comments
 (0)