[all-commits] [llvm/llvm-project] 262e28: [compiler-rt] Fix MSVC `/external` detection in cm...

Alexandre Ganea via All-commits all-commits at lists.llvm.org
Mon Oct 2 09:29:48 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 262e2886b842666ae27b126275ffd9dbe9cdcd01
      https://github.com/llvm/llvm-project/commit/262e2886b842666ae27b126275ffd9dbe9cdcd01
  Author: Alexandre Ganea <alex_toresh at yahoo.fr>
  Date:   2023-10-02 (Mon, 02 Oct 2023)

  Changed paths:
    M compiler-rt/lib/asan/CMakeLists.txt
    M compiler-rt/lib/interception/CMakeLists.txt
    M compiler-rt/lib/ubsan/CMakeLists.txt

  Log Message:
  -----------
  [compiler-rt] Fix MSVC `/external` detection in cmake scripts

As suggested by https://reviews.llvm.org/D116872#4650507

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


  Commit: 2385cf66e275d831fe5aeb8daa5afae9614be955
      https://github.com/llvm/llvm-project/commit/2385cf66e275d831fe5aeb8daa5afae9614be955
  Author: Alexandre Ganea <alex_toresh at yahoo.fr>
  Date:   2023-10-02 (Mon, 02 Oct 2023)

  Changed paths:
    M compiler-rt/lib/interception/interception_win.cpp

  Log Message:
  -----------
  [compiler-rt] Fix "interception" file name


  Commit: 6f2358ee7750b0e8e7b457b82c4ab81ca78d1950
      https://github.com/llvm/llvm-project/commit/6f2358ee7750b0e8e7b457b82c4ab81ca78d1950
  Author: Alexandre Ganea <alex_toresh at yahoo.fr>
  Date:   2023-10-02 (Mon, 02 Oct 2023)

  Changed paths:
    M compiler-rt/lib/asan/asan_thread.h

  Log Message:
  -----------
  [compiler-rt][asan] Silence MSVC warning

Disable `warning C4200: nonstandard extension used : zero-sized array in struct/union` as done in other places in compiler-rt.


  Commit: 82694d9c60454d4fadfbad7ebea84e9ec1964f41
      https://github.com/llvm/llvm-project/commit/82694d9c60454d4fadfbad7ebea84e9ec1964f41
  Author: Alexandre Ganea <alex_toresh at yahoo.fr>
  Date:   2023-10-02 (Mon, 02 Oct 2023)

  Changed paths:
    M compiler-rt/lib/asan/asan_poisoning.cpp

  Log Message:
  -----------
  [compiler-rt][asan] Silence MSVC warning

```
[3/56] Building CXX object projects\compiler-rt\lib\asan\CMakeFiles\RTAsan.x86_64.dir\asan_poisoning.cpp.obj
C:\git\llvm-project\compiler-rt\lib\asan\asan_poisoning.cpp(450): warning C4390: ';': empty controlled statement found; is this the intent?
[4/56] Building CXX object projects\compiler-rt\lib\asan\CMakeFiles\RTAsan_dynamic.x86_64.dir\asan_poisoning.cpp.obj
C:\git\llvm-project\compiler-rt\lib\asan\asan_poisoning.cpp(450): warning C4390: ';': empty controlled statement found; is this the intent?
```


  Commit: d58fb40670ea9fb7f55e68267a5536daa974da85
      https://github.com/llvm/llvm-project/commit/d58fb40670ea9fb7f55e68267a5536daa974da85
  Author: Alexandre Ganea <alex_toresh at yahoo.fr>
  Date:   2023-10-02 (Mon, 02 Oct 2023)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary64.h

  Log Message:
  -----------
  [compiler-rt][asan] Silence warning

This would silence:
```
[2003/2029] Generating ASAN_NOINST_TEST_OBJECTS.asan_noinst_test.cpp.x86_64-inline.o
In file included from C:/git/llvm-project/compiler-rt/lib/asan/tests/asan_noinst_test.cpp:24:
In file included from C:/git/llvm-project/compiler-rt/lib/asan\asan_allocator.h:20:
In file included from C:/git/llvm-project/compiler-rt/lib\sanitizer_common/sanitizer_allocator.h:74:
C:/git/llvm-project/compiler-rt/lib\sanitizer_common\sanitizer_allocator_primary64.h:639:54: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
  639 |   static_assert(kRegionSize >= SizeClassMap::kMaxSize);
      |                                                      ^
      |                                                      , ""
1 warning generated.
```


Compare: https://github.com/llvm/llvm-project/compare/acb6e855a807...d58fb40670ea


More information about the All-commits mailing list