Alexander Richardson
dfafe3822b
Reland "[compiler-rt] Allow running tests without installing first"
...
Currently, the testsuite uses the default runtimes path to find the
runtimes libraries which may or may not match the just-built runtimes.
This change uses the `-resource-dir` flag for clang whenever
`COMPILER_RT_TEST_STANDALONE_BUILD_LIBS` is set to ensure that we are
actually testing the currently built libraries rather than the ones
bundled with `${COMPILER_RT_TEST_COMPILER}`.
The existing logic works fine when clang and compiler-rt share the same
build directory ``-DLLVM_ENABLE_PROJECTS=clang;compiler-rt`, but when
building compiler-rt separately we need to tell the compiler used for
the tests where it can find the just-built libraries.
This reduces the fixes check-all failures to one in my configuration:
```
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -G Ninja
-DCMAKE_C_COMPILER=$HOME/output/upstream-llvm/bin/clang
-DCMAKE_CXX_COMPILER=$HOME/output/upstream-llvm/bin/clang++
-DCOMPILER_RT_INCLUDE_TESTS=ON
-DLLVM_EXTERNAL_LIT=$HOME/build/upstream-llvm-project-build/bin/llvm-lit
-DLLVM_CMAKE_DIR=$HOME/output/upstream-llvm
-DCOMPILER_RT_DEBUG=OFF
-S $HOME/src/upstream-llvm-project/compiler-rt
-B $HOME/src/upstream-llvm-project/compiler-rt/cmake-build-all-sanitizers
```
This relands the previous PR with fixes for Windows.
Depends on https://github.com/llvm/llvm-project/pull/88074 to be merged
first for GCC buildbots.
Pull Request: https://github.com/llvm/llvm-project/pull/88075
2024-04-12 13:20:30 -07:00
..
2019-06-27 20:56:04 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2022-12-16 11:41:53 -08:00
2019-01-19 08:50:56 +00:00
2019-04-18 18:49:11 +00:00
2022-12-16 11:41:53 -08:00
2019-04-18 18:49:11 +00:00
2019-04-18 18:49:11 +00:00
2019-01-21 02:22:06 +00:00
2018-05-11 21:29:51 +00:00
2019-01-19 08:50:56 +00:00
2022-12-16 11:41:53 -08:00
2023-04-20 12:19:30 -07:00
2023-03-28 14:19:35 -07:00
2018-05-08 23:45:05 +00:00
2018-09-20 23:24:48 +00:00
2019-01-19 08:50:56 +00:00
2022-09-06 13:37:35 -07:00
2019-01-19 08:50:56 +00:00
2022-12-16 11:41:53 -08:00
2019-01-19 08:50:56 +00:00
2018-05-11 21:29:51 +00:00
2019-01-19 08:50:56 +00:00
2024-03-18 16:48:37 -07:00
2022-12-16 12:48:16 -08:00
2019-01-26 02:38:56 +00:00
2022-12-16 11:41:53 -08:00
2022-11-10 13:44:11 +08:00
2022-12-16 11:41:53 -08:00
2020-08-27 21:48:45 +00:00
2020-08-27 21:48:45 +00:00
2021-08-09 12:14:57 -07:00
2022-09-13 16:19:08 -07:00
2020-08-27 21:48:45 +00:00
2022-12-16 11:41:53 -08:00
2020-07-23 15:59:07 +00:00
2019-01-19 08:50:56 +00:00
2021-09-04 14:12:58 +05:30
2021-09-04 14:12:58 +05:30
2020-09-16 09:20:57 -07:00
2022-12-16 11:41:53 -08:00
2019-01-19 08:50:56 +00:00
2023-03-07 22:18:29 -08:00
2019-01-31 03:03:06 +00:00
2018-05-11 21:29:51 +00:00
2019-01-19 08:50:56 +00:00
2019-01-31 20:32:20 +00:00
2022-12-16 11:41:53 -08:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2020-10-23 16:05:54 -07:00
2022-12-16 11:41:53 -08:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2022-12-16 11:41:53 -08:00
2022-12-16 11:41:53 -08:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2023-10-27 16:52:10 +08:00
2018-05-11 21:29:51 +00:00
2019-01-31 23:43:54 +00:00
2021-08-05 11:40:15 -07:00
2019-04-13 00:20:31 +00:00
2022-11-10 13:44:11 +08:00
2022-12-16 11:41:53 -08:00
2023-09-01 01:11:58 -07:00
2022-12-16 11:41:53 -08:00
2022-12-16 11:41:53 -08:00
2023-09-01 00:57:35 -07:00
2019-01-19 08:50:56 +00:00
2018-05-11 21:29:53 +00:00
2022-12-16 11:41:53 -08:00
2019-01-19 08:50:56 +00:00
2019-01-21 02:22:06 +00:00
2018-09-20 23:24:48 +00:00
2018-05-11 21:29:51 +00:00
2023-09-20 15:19:25 -07:00
2018-05-11 21:29:51 +00:00
2020-09-03 08:31:59 -07:00
2018-05-24 23:55:54 +00:00
2018-05-11 21:29:51 +00:00
2021-10-08 08:55:22 +00:00
2019-01-21 02:22:06 +00:00
2019-01-21 02:22:06 +00:00
2019-01-21 02:22:06 +00:00
2019-01-21 02:22:06 +00:00
2020-09-14 23:50:52 -07:00
2018-05-11 21:29:51 +00:00
2022-12-16 11:41:53 -08:00
2022-12-16 11:41:53 -08:00
2018-05-11 21:29:51 +00:00
2021-07-09 11:44:34 -04:00
2022-09-15 13:40:28 -07:00
2021-07-09 11:44:34 -04:00
2018-05-11 21:29:51 +00:00
2018-05-11 21:29:51 +00:00
2018-06-14 22:13:36 +00:00
2022-12-16 12:48:16 -08:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2018-09-20 23:24:48 +00:00
2019-01-19 08:50:56 +00:00
2019-04-12 20:20:57 +00:00
2020-09-16 10:44:34 -07:00
2020-09-03 15:54:39 +00:00
2019-06-14 19:54:32 +00:00
2019-12-03 14:37:37 -08:00
2022-05-10 10:19:04 +02:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-02-16 01:23:41 +00:00
2019-04-25 18:42:30 +00:00
2024-04-12 13:20:30 -07:00
2022-03-11 15:43:01 -08:00
2020-08-27 19:12:30 +00:00
2019-05-08 00:43:12 +00:00
2019-04-30 22:05:55 +00:00
2018-05-11 21:29:51 +00:00
2022-12-16 11:41:53 -08:00
2019-01-19 08:50:56 +00:00
2022-12-16 11:41:53 -08:00
2020-07-24 00:24:46 -07:00
2022-05-20 11:27:08 -07:00
2023-03-22 22:55:48 -07:00
2022-12-16 11:41:53 -08:00
2022-12-16 11:41:53 -08:00
2021-09-04 14:12:58 +05:30
2021-07-09 11:44:34 -04:00
2020-08-11 22:16:12 +02:00
2022-12-16 11:41:53 -08:00
2022-12-16 11:41:53 -08:00
2022-12-16 11:41:53 -08:00
2022-12-16 11:41:53 -08:00
2021-04-13 10:49:42 -07:00
2019-05-09 22:48:46 +00:00
2019-01-19 08:50:56 +00:00
2020-09-09 03:28:53 +00:00
2022-12-16 11:41:53 -08:00
2022-12-16 11:41:53 -08:00
2022-12-16 11:41:53 -08:00
2022-12-16 11:41:53 -08:00
2023-04-14 15:33:11 +00:00
2022-12-16 11:41:53 -08:00
2022-06-30 13:21:27 -07:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-02-03 16:53:32 +00:00
2022-09-15 13:40:28 -07:00
2019-01-19 08:50:56 +00:00
2021-07-09 11:44:34 -04:00
2019-01-19 08:50:56 +00:00
2021-06-19 01:09:19 +00:00
2021-06-19 01:09:19 +00:00
2019-06-20 01:48:45 +00:00
2021-08-04 17:37:26 -07:00
2021-04-13 11:33:41 -07:00
2021-04-13 11:33:41 -07:00
2021-08-04 17:37:26 -07:00
2019-09-26 00:54:30 +00:00
2019-01-19 08:50:56 +00:00
2022-12-16 11:41:53 -08:00
2019-01-19 08:50:56 +00:00
2018-11-06 23:25:25 +00:00
2019-01-19 08:50:56 +00:00
2022-12-16 11:41:53 -08:00
2018-06-28 00:39:50 +00:00
2022-06-30 13:21:27 -07:00
2022-06-30 13:21:27 -07:00
2019-04-05 20:17:03 +00:00
2019-04-24 19:02:54 +00:00
2018-05-11 21:29:51 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2021-08-04 17:37:26 -07:00
2019-07-08 19:26:21 +00:00
2021-09-07 09:42:38 -07:00
2021-07-09 11:44:34 -04:00
2018-08-09 00:41:22 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2022-12-16 11:41:53 -08:00
2019-01-19 08:50:56 +00:00
2022-12-16 11:41:53 -08:00
2019-05-08 00:51:15 +00:00
2019-02-12 00:29:51 +00:00
2020-08-24 14:45:39 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-05-09 22:09:25 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2022-09-15 13:40:28 -07:00
2021-05-07 09:18:21 -07:00
2018-09-20 23:24:48 +00:00
2022-12-16 11:41:53 -08:00
2020-09-18 00:36:48 -07:00
2019-01-31 01:24:01 +00:00
2022-12-16 11:41:53 -08:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2022-12-16 11:41:53 -08:00
2019-01-19 08:50:56 +00:00
2020-08-12 18:38:12 +02:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-02-20 18:55:52 +00:00
2019-01-19 08:50:56 +00:00
2018-09-05 14:43:38 +00:00
2019-01-19 08:50:56 +00:00
2022-06-09 09:24:09 -04:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-31 18:40:12 +00:00
2019-01-19 08:50:56 +00:00
2019-05-08 00:51:15 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2018-05-11 21:29:51 +00:00
2022-12-16 11:41:53 -08:00
2021-02-17 15:00:46 +00:00
2018-05-11 21:29:51 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2022-12-16 11:41:53 -08:00
2020-11-16 09:35:35 -08:00
2020-11-12 13:11:14 -08:00
2018-07-09 23:51:08 +00:00
2018-07-09 23:51:08 +00:00
2022-12-16 11:41:53 -08:00
2018-10-10 00:58:03 +00:00
2019-02-03 16:53:32 +00:00
2019-02-03 16:53:32 +00:00
2023-07-18 22:11:27 -07:00
2020-08-27 19:12:30 +00:00
2022-12-16 11:41:53 -08:00
2018-10-10 00:58:03 +00:00
2022-12-16 11:41:53 -08:00
2022-12-16 11:41:53 -08:00
2022-12-16 11:41:53 -08:00
2019-07-11 23:20:04 +00:00