-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include -fsanitize flags with OTHER_TAPI_FLAGS during builds
https://bugs.webkit.org/show_bug.cgi?id=260119 <rdar://113800841> Reviewed by Alex Christensen. Although there are currently no build failures with TAPI and a Sanitizer enabled, this is a correctness fix to prevent such issues by passing the proper -fsanitize flags during the InstallAPI (TAPI) build phase. * Configurations/CommonBase.xcconfig: (WK_COMMON_OTHER_TAPI_FLAGS): Add. - Extract common flags from OTHER_TAPI_FLAGS in project xcconfig files. - Add $(WK_SANITIZER_OTHER_TAPI_FLAGS) from Sanitizers.xcconfig. (OTHER_TAPI_FLAGS): - Add $(WK_COMMON_OTHER_TAPI_FLAGS) in OTHER_TAPI_FLAGS. * Configurations/Sanitizers.xcconfig: (WK_SANITIZER_OTHER_TAPI_FLAGS): Add. - Includes variables below based on whether various sanitizers are enabled during the build. (WK_SANITIZER_OTHER_TAPI_FLAGS_ASAN_YES): Add. (WK_SANITIZER_OTHER_TAPI_FLAGS_LIBFUZZER_YES): Add. (WK_SANITIZER_OTHER_TAPI_FLAGS_TSAN_YES): Add. (WK_SANITIZER_OTHER_TAPI_FLAGS_UBSAN_YES): Add. - Sanitizer-specific flags for use with OTHER_TAPI_FLAGS. * Source/JavaScriptCore/Configurations/JavaScriptCore.xcconfig: (OTHER_TAPI_FLAGS): * Source/WebKit/Configurations/Base.xcconfig: (OTHER_TAPI_FLAGS): * Source/WebKitLegacy/mac/Configurations/WebKitLegacy.xcconfig: (OTHER_TAPI_FLAGS): - Add $(inherited) to OTHER_TAPI_FLAGS so that the definition in Configurations/CommonBase.xcconfig is included. Canonical link: https://commits.webkit.org/266867@main
- Loading branch information
Showing
5 changed files
with
14 additions
and
5 deletions.
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
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
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