mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 03:30:44 +00:00
build: avoid -Wno-error=stringop-overread for clang
In order to prevent a build error when building with clang (e.g. macOS), only specify -Wno-error=stringop-overread for gcc.
This commit is contained in:
parent
20ea508eb6
commit
707ee7c717
@ -534,11 +534,13 @@ gcc | clang {
|
|||||||
|
|
||||||
message("$$QMAKE_CXX major version $$COMPILER_MAJOR")
|
message("$$QMAKE_CXX major version $$COMPILER_MAJOR")
|
||||||
|
|
||||||
|
equals($$QMAKE_CXX, "gcc") : {
|
||||||
greaterThan(COMPILER_MAJOR, 10) : {
|
greaterThan(COMPILER_MAJOR, 10) : {
|
||||||
QMAKE_CFLAGS += -Wno-error=stringop-overread
|
QMAKE_CFLAGS += -Wno-error=stringop-overread
|
||||||
QMAKE_CXXFLAGS += -Wno-error=stringop-overread
|
QMAKE_CXXFLAGS += -Wno-error=stringop-overread
|
||||||
message("Removing stringop-overread error")
|
message("Removing stringop-overread error")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user