WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
71370
webkitdirs.pm: add getArchitecture implementation for autotools ports
https://bugs.webkit.org/show_bug.cgi?id=71370
Summary
webkitdirs.pm: add getArchitecture implementation for autotools ports
Andy Wingo
Reported
2011-11-02 09:17:26 PDT
If I run "Tools/Scripts/run-javascriptcore-tests --gtk" on my Linux box, it will run build-jsc with the --32-bit argument, which is not what I want, given that I have already built JSC for x86-64. The patch to be attached fixes this issue. (If I omit --gtk, even having already built JSC, I get worse results, but that's another bug.)
Attachments
Patch
(2.66 KB, patch)
2011-11-02 09:20 PDT
,
Andy Wingo
no flags
Details
Formatted Diff
Diff
Patch
(2.63 KB, patch)
2011-11-08 08:31 PST
,
Andy Wingo
no flags
Details
Formatted Diff
Diff
Patch
(2.83 KB, patch)
2011-11-09 02:41 PST
,
Andy Wingo
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Andy Wingo
Comment 1
2011-11-02 09:20:09 PDT
Created
attachment 113320
[details]
Patch
Philippe Normand
Comment 2
2011-11-08 01:57:13 PST
Comment on
attachment 113320
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=113320&action=review
> Tools/Scripts/webkitdirs.pm:250 > + if (isGtk() or isEfl()) { > + determineConfigurationProductDir(); > + my $host_triple = `grep -E '^host = ' $configurationProductDir/GNUmakefile`;
I think EFL uses CMake so this check on the GNUMakefile will likely always fail for them. Maybe remove the isEfl() test?
Andy Wingo
Comment 3
2011-11-08 08:31:10 PST
Created
attachment 114080
[details]
Patch
Andy Wingo
Comment 4
2011-11-08 08:31:40 PST
Updated patch. R? :)
Martin Robinson
Comment 5
2011-11-08 08:38:39 PST
Comment on
attachment 114080
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=114080&action=review
> Tools/Scripts/webkitdirs.pm:250 > + determineConfigurationProductDir(); > + my $host_triple = `grep -E '^host = ' $configurationProductDir/GNUmakefile`; > + $architecture = $1 if $host_triple =~ m/^host = ([^-]+)-/;
In the Mac case they first check the architecture set for the build and then if it's not there, they fall back to the system architecture. I think you should do the same here.
Andy Wingo
Comment 6
2011-11-09 02:41:17 PST
Created
attachment 114228
[details]
Patch
Xan Lopez
Comment 7
2011-11-09 08:41:27 PST
Comment on
attachment 114228
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=114228&action=review
> Tools/Scripts/webkitdirs.pm:254 > + # Fall back to output of `arch', if it is present.
Ultra nitpick, you don't really have further fallbacks, so I guess the "if it is present" is a bit misleading. You'll use that or fail in some way I suppose. Anyway, this looks OK to me.
WebKit Review Bot
Comment 8
2011-11-09 09:40:49 PST
Comment on
attachment 114228
[details]
Patch Clearing flags on attachment: 114228 Committed
r99729
: <
http://trac.webkit.org/changeset/99729
>
WebKit Review Bot
Comment 9
2011-11-09 09:40:54 PST
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