WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
136765
Move ASan flag settings from DebugRelease.xcconfig to Base.xcconfig
https://bugs.webkit.org/show_bug.cgi?id=136765
Summary
Move ASan flag settings from DebugRelease.xcconfig to Base.xcconfig
David Farler
Reported
2014-09-11 16:22:50 PDT
Production-style builds aren't picking up ASan flags even though the ASan xcconfig is passed at the command line. We need to move those settings up to Base.xcconfig wherever it occurs in DebugRelease.xcconfig.
Attachments
This patch moves all of the ASan environment variables
(24.33 KB, patch)
2015-01-26 21:04 PST
,
Dana Burkart
no flags
Details
Formatted Diff
Diff
Fix style issue
(24.30 KB, patch)
2015-01-26 21:12 PST
,
Dana Burkart
darin
: review+
ap
: commit-queue-
Details
Formatted Diff
Diff
Address concerns
(24.17 KB, patch)
2015-01-27 16:38 PST
,
Dana Burkart
ap
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2015-01-20 11:14:08 PST
Dana, isn't this why ASan roots build incorrectly?
Dana Burkart
Comment 2
2015-01-20 12:39:37 PST
(In reply to
comment #1
)
> Dana, isn't this why ASan roots build incorrectly?
Could be. I will test this theory out.
Radar WebKit Bug Importer
Comment 3
2015-01-26 20:02:17 PST
<
rdar://problem/19610008
>
Dana Burkart
Comment 4
2015-01-26 21:04:41 PST
Created
attachment 245411
[details]
This patch moves all of the ASan environment variables
WebKit Commit Bot
Comment 5
2015-01-26 21:06:10 PST
Note that there are important steps to take when updating ANGLE. See
http://trac.webkit.org/wiki/UpdatingANGLE
WebKit Commit Bot
Comment 6
2015-01-26 21:06:21 PST
Attachment 245411
[details]
did not pass style-queue: ERROR: Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 1 in 24 files If any of these errors are false positives, please file a bug against check-webkit-style.
Dana Burkart
Comment 7
2015-01-26 21:12:22 PST
Created
attachment 245412
[details]
Fix style issue
Darin Adler
Comment 8
2015-01-26 21:43:31 PST
Comment on
attachment 245412
[details]
Fix style issue Why do some of these also include $(inherited) but others don’t?
Alexey Proskuryakov
Comment 9
2015-01-27 00:11:02 PST
Comment on
attachment 245412
[details]
Fix style issue View in context:
https://bugs.webkit.org/attachment.cgi?id=245412&action=review
This breaks the build: "recursive template instantiation exceeded maximum depth". That's caused by losing this option from DebugRelease.xcconfig in TestWebKitAPI: OTHER_CPLUSPLUSFLAGS = -ftemplate-depth=256 $(ASAN_OTHER_CPLUSPLUSFLAGS); Grepping for OTHER_ in WebKit, I noticed that DumpRenderTree.xcodeproj overrides some of these flags to empty in its "All" target. Is this just accidental noise? Can it be deleted?
> Source/WebCore/WebCore.xcodeproj/project.pbxproj:30365 > - OTHER_LDFLAGS = ""; > + OTHER_LDFLAGS = "$(ASAN_OTHER_LDFLAGS)";
The WebCoreExportFileGenerator target configuration looks super weird. We should probably give it its own xcconfig file, rather than use WebCore.xcconfig and then override its values.
Dana Burkart
Comment 10
2015-01-27 10:31:52 PST
(In reply to
comment #8
)
> Comment on
attachment 245412
[details]
> Fix style issue > > Why do some of these also include $(inherited) but others don’t?
I'm not sure. All of the projects with DebugRelease.xcconfigs which had $(inherited) don't set the environment variables anywhere else, so I guess they were there just to be safe?
Dana Burkart
Comment 11
2015-01-27 10:36:57 PST
(In reply to
comment #9
)
> Comment on
attachment 245412
[details]
> Fix style issue > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=245412&action=review
> > This breaks the build: "recursive template instantiation exceeded maximum > depth". > > That's caused by losing this option from DebugRelease.xcconfig in > TestWebKitAPI: > > OTHER_CPLUSPLUSFLAGS = -ftemplate-depth=256 $(ASAN_OTHER_CPLUSPLUSFLAGS); >
Okay, I'll put that back in.
> Grepping for OTHER_ in WebKit, I noticed that DumpRenderTree.xcodeproj > overrides some of these flags to empty in its "All" target. Is this just > accidental noise? Can it be deleted?
I think so. I'll give it a shot.
> > > Source/WebCore/WebCore.xcodeproj/project.pbxproj:30365 > > - OTHER_LDFLAGS = ""; > > + OTHER_LDFLAGS = "$(ASAN_OTHER_LDFLAGS)"; > > The WebCoreExportFileGenerator target configuration looks super weird. We > should probably give it its own xcconfig file, rather than use > WebCore.xcconfig and then override its values.
The other targets in WebCore set it to $(ASAN_OTHER_LDFLAGS) instead of being empty, so I simply changed it to match...
Alexey Proskuryakov
Comment 12
2015-01-27 11:05:21 PST
> The other targets in WebCore set it to $(ASAN_OTHER_LDFLAGS) instead of being empty, so I simply changed it to match...
Right, I don't think that factoring out an xcconfig for this target should be part of this patch.
Dana Burkart
Comment 13
2015-01-27 16:38:41 PST
Created
attachment 245493
[details]
Address concerns
Dana Burkart
Comment 14
2015-01-28 10:28:38 PST
Committed revision 179269.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug