This is an archive of the discontinued LLVM Phabricator instance.

Allow passing additional compiler/linker flags for the tests
ClosedPublic

Authored by arichardson on Jan 16 2018, 3:25 PM.

Details

Summary

These flags can be specified using the CMake variables
LIBCXX_TEST_LINKER_FLAGS and LIBCXX_TEST_COMPILER_FLAGS.
When building the tests for CHERI I need to pass additional
flags (such as -mabi=n64 or -mabi=purecap) to the compiler
for our test configurations

Diff Detail

Repository
rL LLVM

Event Timeline

arichardson created this revision.Jan 16 2018, 3:25 PM
arichardson retitled this revision from [UPSTREAM] Allow passing additional compiler/linker flags for the tests to Allow passing additional compiler/linker flags for the tests.Jan 16 2018, 3:31 PM
EricWF accepted this revision.Feb 19 2018, 12:22 PM

I'm fine with this, but I don't really think it's a good solution (but none of our LIT config is ideal). In particular for the link flags might not work well, because the order of linker flags matters a lot and this doesn't really deal with that. But if it works for your case.

This revision is now accepted and ready to land.Feb 19 2018, 12:22 PM
This revision was automatically updated to reflect the committed changes.