[all-commits] [llvm/llvm-project] a2e782: [compiler-rt] Relax CHECK line in reaches_function.c

Alexander Richardson via All-commits all-commits at lists.llvm.org
Fri Mar 1 19:19:41 PST 2024


  Branch: refs/heads/users/arichardson/spr/main.compiler-rt-fix-build-race-with-compiler_rt_test_standalone_build_libs
  Home:   https://github.com/llvm/llvm-project
  Commit: a2e7827fde0d87b7e8665926b2b9e73171e07369
      https://github.com/llvm/llvm-project/commit/a2e7827fde0d87b7e8665926b2b9e73171e07369
  Author: Alexander Richardson <alexrichardson at google.com>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
    M compiler-rt/test/dfsan/reaches_function.c

  Log Message:
  -----------
  [compiler-rt] Relax CHECK line in reaches_function.c

In my build environment, the output is a relative path:
```
test/dfsan/reaches_function.c:34 add.dfsan
test/dfsan/reaches_function.c:56 main
```

This fixes check-dfsan 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
```

Reviewers: browneee, vitalybuka

Reviewed By: vitalybuka

Pull Request: https://github.com/llvm/llvm-project/pull/83089


  Commit: 07317bbc66d1f2d7663af3c9f04d0f6c0487ac03
      https://github.com/llvm/llvm-project/commit/07317bbc66d1f2d7663af3c9f04d0f6c0487ac03
  Author: Alex Richardson <alexrichardson at google.com>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
    M compiler-rt/cmake/Modules/CompilerRTCompile.cmake

  Log Message:
  -----------
  [compiler-rt] Build libfuzzer sources with the chosen C++ compiler

I was getting build failures due to missing <cstddef> when building the
libfuzzer tests. It turns out that the custom command was using
COMPILER_RT_TEST_COMPILER when building the source file rather than
the COMPILER_RT_TEST_CXX_COMPILER.

Pull Request: https://github.com/llvm/llvm-project/pull/83090


  Commit: f1ec083d19b8fcd76225f820a47e9b0a76955bcb
      https://github.com/llvm/llvm-project/commit/f1ec083d19b8fcd76225f820a47e9b0a76955bcb
  Author: Alex Richardson <alexrichardson at google.com>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:

  Log Message:
  -----------
  [𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.4

[skip ci]


Compare: https://github.com/llvm/llvm-project/compare/442c47cad5dd...f1ec083d19b8

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list