Blender Git Commit Log

Git Commits -> Revision a4c5811

Revision a4c5811 by Ankit Meel (master)
September 15, 2020, 20:48 (GMT)
ASan/macOS: fix incomplete C/CXX compiler flags.

While testing for {rB40dcf686f04f}, compiler flags got mixed up and
non-working ASan configuration was committed.

Platform file, which is `include`d after the `CMAKE_C_FLAGS_DEBUG` etc.,
are set, overwrites those flags instead of appending to them. To fix this,
`PLATFORM_CFLAGS` is used to pass the `-fsanitize=*` flags to the C/C++
compiler.

Tested on fresh build using both Xcode and Ninja, with & without ccache.

Also silence a clang warning for multi-config generators:
the object size sanitizer has no effect at -O0, but is explicitly
enabled: -fsanitize=object-size [-Winvalid-command-line-argument]

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D8879

Commit Details:

Full Hash: a4c5811e21271d0f26e0534f25800059c198982d
Parent Commit: 84032fd
Lines Changed: +10, -4

2 Modified Paths:

/build_files/cmake/platform/platform_apple.cmake (+1, -1) (Diff)
/CMakeLists.txt (+9, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021