1
0
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:
Simon Tatham 2022-09-03 11:35:33 +01:00
parent 19ab0e34d6
commit 23245fb418

View File

@ -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.
#