[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:29 PST 2024


  Branch: refs/heads/users/arichardson/spr/main.compiler-rt-remove-llvm_gtest-dependency-from-unit-tests
  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: 7a1373899002ca5baef511070b5f94cab5874ed6
      https://github.com/llvm/llvm-project/commit/7a1373899002ca5baef511070b5f94cab5874ed6
  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/552a908d14b5...7a1373899002

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