mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-08 02:55:56 +01:00
Add 'OSXCROSS_ENABLE_WERROR_IMPLICIT_FUNCTION_DECLARATION' env variable to emulate Xcode 12's behavior
This commit is contained in:
parent
035cc17033
commit
4ec572e392
@ -886,6 +886,8 @@ bool Target::setup() {
|
|||||||
if (wliblto == -1)
|
if (wliblto == -1)
|
||||||
fargs.push_back("-Wno-liblto");
|
fargs.push_back("-Wno-liblto");
|
||||||
}
|
}
|
||||||
|
if (getenv("OSXCROSS_ENABLE_WERROR_IMPLICIT_FUNCTION_DECLARATION"))
|
||||||
|
fargs.push_back("-Werror=implicit-function-declaration");
|
||||||
} else if (isGCC()) {
|
} else if (isGCC()) {
|
||||||
if (args.empty() || (args.size() == 1 && args[0] == "-v")) {
|
if (args.empty() || (args.size() == 1 && args[0] == "-v")) {
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user