WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
207045
build-webkit: SDKROOT and ARCHS should override command-line options
https://bugs.webkit.org/show_bug.cgi?id=207045
Summary
build-webkit: SDKROOT and ARCHS should override command-line options
Jonathan Bedard
Reported
2020-01-31 07:44:15 PST
If the user passes ARCHS or SDKROOT to build-webkit, it should override the defaults set by the command line. This is especially important for ARCHS since there are often multiple valid architectures for a given platform.
Attachments
Patch
(2.13 KB, patch)
2020-01-31 07:48 PST
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch
(2.01 KB, patch)
2020-01-31 09:20 PST
,
Jonathan Bedard
ap
: review-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Jonathan Bedard
Comment 1
2020-01-31 07:48:48 PST
Created
attachment 389349
[details]
Patch
Alexey Proskuryakov
Comment 2
2020-01-31 08:34:39 PST
Comment on
attachment 389349
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=389349&action=review
> Tools/ChangeLog:3 > + build-webkit: SDKROOT and ARCHS should override command-line options
What combination of options is this fixing? That's worth explaining in ChangeLog.
> Tools/ChangeLog:14 > + Makefiles should make webkitdirs aware of the Architecture, SDK
Double ChangeLog.
Alexey Proskuryakov
Comment 3
2020-01-31 08:38:14 PST
> If the user passes ARCHS or SDKROOT to build-webkit, it should override the > defaults set by the command line.
Seeing the explanation here, I'm not sure if I agree. I think that build-root shouldn't support these. Make options should be passed via --makeargs, and build-webkit options should all be proper command line options with "--". Doing otherwise would be mysterious and inconsistent.
Jonathan Bedard
Comment 4
2020-01-31 09:08:03 PST
(In reply to Alexey Proskuryakov from
comment #3
)
> > If the user passes ARCHS or SDKROOT to build-webkit, it should override the > > defaults set by the command line. > > Seeing the explanation here, I'm not sure if I agree. I think that > build-root shouldn't support these. Make options should be passed via > --makeargs, and build-webkit options should all be proper command line > options with "--". Doing otherwise would be mysterious and inconsistent.
There is a good case for not doing SDKROOT (since --ios-simulator and --ios-device set it). But failing to look for ARCHS is actually a pretty big correctness problem. This means that someone ran 'build-webkit --ios-device ARCHS=arm64e', we would pass this: ARCHS=arm64 ARCHS=arm64e to Xcode. Which is wrong. We could add a --architecture option, but it feels better to just make this work with ARCHS. This is really important for watchOS, where there are 3 valid architectures, and for iOS if we want the default build to include both arm64 and arm64e.
Jonathan Bedard
Comment 5
2020-01-31 09:20:36 PST
Created
attachment 389358
[details]
Patch
Alexey Proskuryakov
Comment 6
2020-01-31 09:21:41 PST
> We could add a --architecture option, but it feels better to just make this work with ARCHS.
Can you elaborate on why this feels better to you? That's exactly what I don't like due to inconsistency with other options.
Jonathan Bedard
Comment 7
2020-01-31 09:50:15 PST
(In reply to Alexey Proskuryakov from
comment #6
)
> > We could add a --architecture option, but it feels better to just make this work with ARCHS. > > Can you elaborate on why this feels better to you? That's exactly what I > don't like due to inconsistency with other options.
We would be asking users to learn a new option which didn't exist before, and it's likely that those interested in setting architecture are already passing ARCHS to build-webkit. Use --<platform> options in build-webkit makes some sense because run-webkit-tests uses the same style. The only established style we have for architecture that I've encountered before is ARCHS. Even our builders use it:
https://build.webkit.org/builders/Apple%20iOS%2013%20Release%20%28Build%29/builds/3826/steps/compile-webkit/logs/stdio
Alexey Proskuryakov
Comment 8
2020-01-31 13:47:10 PST
Pretty sure that you are talking about an empty set of people here.
Jonathan Bedard
Comment 9
2020-01-31 14:13:05 PST
(In reply to Alexey Proskuryakov from
comment #8
)
> Pretty sure that you are talking about an empty set of people here.
Anyone who has been copying build commands from bots would be building with ARCHS. I think we need a compelling reason to use --architecture over ARCHS=, since we don't have any scripts using --architecture at the moment.
Alexey Proskuryakov
Comment 10
2020-01-31 15:56:27 PST
This reason is that all build-webkit options are options. There is no need to start using arguments, environment variables, and such.
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