WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
156338
Modify the CXXFLAGS in webkitdirs.pm just on architectures where the flags are supported
https://bugs.webkit.org/show_bug.cgi?id=156338
Summary
Modify the CXXFLAGS in webkitdirs.pm just on architectures where the flags ar...
Tomas Popela
Reported
2016-04-07 05:02:45 PDT
When building from checkout on s390(x) or ppc(64) the build will fail as we are adding "-march=pentium4 -msse2 -mfpmath=sse " into CXXFLAGS in webkitdirs.pm. We need to avoid this step for these architectures.
Attachments
Proposed patch
(1.83 KB, patch)
2016-04-07 05:05 PDT
,
Tomas Popela
no flags
Details
Formatted Diff
Diff
Modify the CXXFLAGS just on i686
(1.61 KB, patch)
2016-04-12 01:58 PDT
,
Tomas Popela
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Tomas Popela
Comment 1
2016-04-07 05:05:40 PDT
Created
attachment 275882
[details]
Proposed patch
Michael Catanzaro
Comment 2
2016-04-07 05:13:02 PDT
Comment on
attachment 275882
[details]
Proposed patch I think it would be better to check for i[3,4,5,6]86 to decide whether to add those build flags, so that we don't need to grow this conditional for every imaginable arch.
Michael Catanzaro
Comment 3
2016-04-07 05:20:31 PDT
Comment on
attachment 275882
[details]
Proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=275882&action=review
> Tools/Scripts/webkitdirs.pm:2019 > $ENV{'CXXFLAGS'} = "-march=pentium4 -msse2 -mfpmath=sse " . ($ENV{'CXXFLAGS'} || "");
Actually note that since it uses sse2, these flags only work on i686.
Radar WebKit Bug Importer
Comment 4
2016-04-07 05:21:51 PDT
<
rdar://problem/25599643
>
Tomas Popela
Comment 5
2016-04-07 07:38:30 PDT
(In reply to
comment #3
)
> Comment on
attachment 275882
[details]
> Proposed patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=275882&action=review
> > > Tools/Scripts/webkitdirs.pm:2019 > > $ENV{'CXXFLAGS'} = "-march=pentium4 -msse2 -mfpmath=sse " . ($ENV{'CXXFLAGS'} || ""); > > Actually note that since it uses sse2, these flags only work on i686.
So this would effectively leave us with: - if ($architecture ne "x86_64" && !isARM() && !isCrossCompilation() && !isAnyWindows()) { + if ($architecture eq "i686" && !isCrossCompilation() && !isAnyWindows()) { but I don't know whether this could break anything for Apple port.
Alex Christensen
Comment 6
2016-04-08 23:09:54 PDT
I don't think this will cause a problem for the Mac cmake work. If it causes a problem we will fix it, but my initial cmake work is only for x86_64
Michael Catanzaro
Comment 7
2016-04-10 15:45:04 PDT
(In reply to
comment #5
)
> So this would effectively leave us with: > > - if ($architecture ne "x86_64" && !isARM() && !isCrossCompilation() && > !isAnyWindows()) { > + if ($architecture eq "i686" && !isCrossCompilation() && > !isAnyWindows()) { > > but I don't know whether this could break anything for Apple port.
Let's indeed go with this. If it unexpectedly breaks something, we can simply revert it and use your original patch instead.
Tomas Popela
Comment 8
2016-04-12 01:58:57 PDT
Created
attachment 276225
[details]
Modify the CXXFLAGS just on i686
WebKit Commit Bot
Comment 9
2016-04-12 07:56:05 PDT
Comment on
attachment 276225
[details]
Modify the CXXFLAGS just on i686 Clearing flags on attachment: 276225 Committed
r199350
: <
http://trac.webkit.org/changeset/199350
>
WebKit Commit Bot
Comment 10
2016-04-12 07:56:09 PDT
All reviewed patches have been landed. Closing bug.
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