mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-11 16:01:00 +08:00
Don't use -fstdarg-opt with clang-tidy (#3079)
* HDFCompilerFlags: mask -fstdarg-opt with clang-tidy `clang-tidy` doesn't understand this `-f` flag and errors out. * Add helpful comment --------- Co-authored-by: Sean McBride <sean@rogue-research.com>
This commit is contained in:
parent
76bc845a2f
commit
44dccb5b15
@ -54,7 +54,9 @@ if (CMAKE_COMPILER_IS_GNUCC)
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Og -ftrapv -fno-common")
|
||||
endif ()
|
||||
else ()
|
||||
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 5.0)
|
||||
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 5.0 AND
|
||||
NOT CMAKE_C_CLANG_TIDY)
|
||||
# `clang-tidy` does not understand -fstdarg-opt
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstdarg-opt")
|
||||
endif ()
|
||||
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 10.0)
|
||||
|
Loading…
Reference in New Issue
Block a user