-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from xhochy/disable-wundef-prefix
Disable -Werror,-Wundef-prefix=TARGET_OS as they are not yet defined in the 10.9 SDK used for osx-64
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- lib/Driver/ToolChains/Darwin.cpp.orig 2020-11-17 21:12:24.000000000 +0100 | ||
+++ lib/Driver/ToolChains/Darwin.cpp 2020-11-17 21:12:37.000000000 +0100 | ||
@@ -960,7 +960,7 @@ | ||
|
||
void DarwinClang::addClangWarningOptions(ArgStringList &CC1Args) const { | ||
// Always error about undefined 'TARGET_OS_*' macros. | ||
- CC1Args.push_back("-Wundef-prefix=TARGET_OS_"); | ||
+ CC1Args.push_back("-Wundef-prefix=TARGET_OS_OSX"); | ||
CC1Args.push_back("-Werror=undef-prefix"); | ||
|
||
// For modern targets, promote certain warnings to errors. |