diff options
author | Michael Kruse <llvm-project@meinersbur.de> | 2025-05-13 13:35:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-13 13:35:08 +0200 |
commit | ddf124984212718edc65a7a21d0c04eed4d8fcd9 (patch) | |
tree | 00e68b4a5c9b61fc7a2f321ebb0cbc511898e89a /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 9b63bdd15418e90d0c6889d26e490db89ae744d1 (diff) | |
download | llvm-ddf124984212718edc65a7a21d0c04eed4d8fcd9.zip llvm-ddf124984212718edc65a7a21d0c04eed4d8fcd9.tar.gz llvm-ddf124984212718edc65a7a21d0c04eed4d8fcd9.tar.bz2 |
[Test] Disable Linux perf test under WSL (#137822)
Linux perf_events is not implemented in WSL1, skip the test that
requires it.
There is just a single test that requires perf_events. It fails under
WSL1 with:
```sh
env JITDUMPDIR=/home/meinersbur/build/llvm-project/release/test/ExecutionEngine/JITLink/x86-64/Output/ELF_perf.s.tmp /home/meinersbur/build/llvm-project/release/bin/llvm-jitlink -perf-support /home/meinersbur/build/llvm-project/release/test/ExecutionEngine/JITLink/x86-64/Output/ELF_perf.s.tmp/ELF_x86-64_perf.o
llvm-jitlink error: PerfState not initialized
```
WSL environment detection logic follows
https://github.com/scivision/detect-windows-subsystem-for-linux/blob/main/is_wsl.py
Also see WSL issue: https://github.com/microsoft/WSL/issues/4595
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions