[all-commits] [llvm/llvm-project] 867ff7: [asan][test] Fix build errors in loongarch64

Lu Weining via All-commits all-commits at lists.llvm.org
Tue Nov 1 05:23:03 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 867ff7c994b4b891c8d92f0dff6bac70f9d9dcf4
      https://github.com/llvm/llvm-project/commit/867ff7c994b4b891c8d92f0dff6bac70f9d9dcf4
  Author: Youling Tang <tangyouling at loongson.cn>
  Date:   2022-11-01 (Tue, 01 Nov 2022)

  Changed paths:
    M compiler-rt/lib/asan/tests/asan_test.cpp
    M compiler-rt/test/asan/CMakeLists.txt

  Log Message:
  -----------
  [asan][test] Fix build errors in loongarch64

- Add get_bits_for_arch for loongarch64 detection, fix the following error,
```
$ make check-asan
-- sanitizer_common tests on "Linux" will run against "asan"
CMake Error at test/asan/CMakeLists.txt:22 (message):
  Unknown target architecture: loongarch64
Call Stack (most recent call first):
  test/asan/CMakeLists.txt:49 (get_bits_for_arch)
```

- Do not use __builtin_longjmp, fix the following error,
```
llvm-project/compiler-rt/lib/asan/tests/asan_test.cpp:635:3: error: __builtin_longjmp is not supported for the current target
  __builtin_longjmp((void**)buf, 1);
```

Differential Revision: https://reviews.llvm.org/D137012




More information about the All-commits mailing list