This is an archive of the discontinued LLVM Phabricator instance.

[cmake] Fix cmake warning in standalone compiler-rt builds.
ClosedPublic

Authored by pgousseau on Oct 7 2020, 4:51 AM.

Details

Summary

LLVM_LIT_CONFIG_FILES is not defined in standalone compiler-rt builds, causing make_paths_relative to fail.

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

Diff Detail

Event Timeline

pgousseau created this revision.Oct 7 2020, 4:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 7 2020, 4:51 AM
pgousseau requested review of this revision.Oct 7 2020, 4:51 AM
thakis accepted this revision.Oct 7 2020, 12:13 PM
This revision is now accepted and ready to land.Oct 7 2020, 12:13 PM