mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Reset the diagnostic syntax in clang-cl builds.
I've only just found out that you can set it back to the Unix-like syntax, which I find more convenient.
This commit is contained in:
parent
19ab0e34d6
commit
23245fb418
@ -110,6 +110,16 @@ if(STRICT)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||
# Switch back from MSVC-style error message format
|
||||
# "file.c(line,col)" to clang's native style "file.c:line:col:". I
|
||||
# find the latter more convenient because it matches other Unixy
|
||||
# tools like grep, and I have tooling to parse that format and jump
|
||||
# to the sites of error messages.
|
||||
set(CMAKE_C_FLAGS
|
||||
"${CMAKE_C_FLAGS} -Xclang -fdiagnostics-format -Xclang clang")
|
||||
endif()
|
||||
|
||||
if(CMAKE_C_COMPILER_ID MATCHES "MSVC")
|
||||
# Turn off some warnings that I've just found too noisy.
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user