Commit 69f057c
authored
[AArch64] Skip test aarch64-init-cpu-features if FMV runtime unavailable. (#269)
The test aarch64-init-cpu-features is conditionally built depending on
whether the FMV runtime is available. When the test-suite is built using
CMake it is handled here: #172
This patch fixes build errors when running LNT tests on AArch64 using
Make rather than CMake:
* It selects between __init_cpu_features_resolver and __init_cpu_features.
* Attempts to compile a dummy program using TARGET_LLVMGCC
to detect availability of the selected symbol.
* Adds corresponding macro (HAS_DARWIN_FMV or HAS_LINUX_FMV)
if detection succeeds.
* Skips test if the symbol is undefined.
Co-authored-by: Alexandros Lamprineas alexandros.lamprineas@arm.com
Co-authored-by: Momchil Velikov momchil.velikov@arm.com1 parent eed578a commit 69f057c
1 file changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
15 | 38 | | |
16 | 39 | | |
17 | 40 | | |
| |||
0 commit comments