Bug 175690 - Only generate offline asm for the ARCHS (xcodebuild) or the current system (CMake)
Summary: Only generate offline asm for the ARCHS (xcodebuild) or the current system (C...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Keith Miller
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-08-17 15:58 PDT by Keith Miller
Modified: 2017-08-22 08:13 PDT (History)
6 users (show)

See Also:


Attachments
Patch (4.81 KB, patch)
2017-08-17 16:02 PDT, Keith Miller
no flags Details | Formatted Diff | Diff
Patch (5.31 KB, patch)
2017-08-21 14:54 PDT, Keith Miller
no flags Details | Formatted Diff | Diff
Patch (4.47 KB, patch)
2017-08-21 16:28 PDT, Keith Miller
no flags Details | Formatted Diff | Diff
Patch (4.66 KB, patch)
2017-08-21 17:28 PDT, Keith Miller
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Miller 2017-08-17 15:58:43 PDT
Only generate offline asm for the ARCHS (xcodebuild) or the current system (CMake)
Comment 1 Keith Miller 2017-08-17 16:02:26 PDT
Created attachment 318432 [details]
Patch
Comment 2 JF Bastien 2017-08-17 16:04:13 PDT
Comment on attachment 318432 [details]
Patch

r=me
Comment 3 Joseph Pecoraro 2017-08-17 16:12:26 PDT
Comment on attachment 318432 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=318432&action=review

> Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj:9910
> +			shellScript = "set -e\n\nmkdir -p \"${BUILT_PRODUCTS_DIR}/LLIntOffsets/\"\n\n/usr/bin/env ruby \"${SRCROOT}/offlineasm/generate_offset_extractor.rb\" \"-I${BUILT_PRODUCTS_DIR}/DerivedSources/JavaScriptCore\" \"${SRCROOT}/llint/LowLevelInterpreter.asm\" \"${BUILT_PRODUCTS_DIR}/LLIntOffsets/LLIntDesiredOffsets.h\" \"${ARCHS}\"\n";

Just a suggestion, but I believe this could go even further:

• For Engineering builds (Release / Debug) if ONLY_ACTIVE_ARCH=YES this could be ${CURRENT_ARCH}.
• For Production builds I'd expect ONLY_ACTIVE_ARCH to always be NO and ${ARCHS} would be appropriate.

That way in my engineering builds when I'm only building for x86_64 I don't also build i386.
Comment 4 Keith Miller 2017-08-21 14:54:11 PDT
(In reply to Joseph Pecoraro from comment #3)
> Comment on attachment 318432 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=318432&action=review
> 
> > Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj:9910
> > +			shellScript = "set -e\n\nmkdir -p \"${BUILT_PRODUCTS_DIR}/LLIntOffsets/\"\n\n/usr/bin/env ruby \"${SRCROOT}/offlineasm/generate_offset_extractor.rb\" \"-I${BUILT_PRODUCTS_DIR}/DerivedSources/JavaScriptCore\" \"${SRCROOT}/llint/LowLevelInterpreter.asm\" \"${BUILT_PRODUCTS_DIR}/LLIntOffsets/LLIntDesiredOffsets.h\" \"${ARCHS}\"\n";
> 
> Just a suggestion, but I believe this could go even further:
> 
> • For Engineering builds (Release / Debug) if ONLY_ACTIVE_ARCH=YES this
> could be ${CURRENT_ARCH}.
> • For Production builds I'd expect ONLY_ACTIVE_ARCH to always be NO and
> ${ARCHS} would be appropriate.
> 
> That way in my engineering builds when I'm only building for x86_64 I don't
> also build i386.

I'm pretty sure if you have ONLY_ACTIVE_ARCH=YES you will only build x86_64. At least that's what I'm seeing locally. I have investigated if that's true everywhere.
Comment 5 Keith Miller 2017-08-21 14:54:17 PDT
Created attachment 318677 [details]
Patch
Comment 6 Keith Miller 2017-08-21 14:54:54 PDT
Trying a simpler method of getting the right names.
Comment 7 Keith Miller 2017-08-21 16:28:22 PDT
Created attachment 318691 [details]
Patch
Comment 8 Keith Miller 2017-08-21 17:28:43 PDT
Created attachment 318708 [details]
Patch
Comment 9 Michael Saboff 2017-08-21 17:38:49 PDT
Comment on attachment 318708 [details]
Patch

r=me
Comment 10 WebKit Commit Bot 2017-08-21 18:07:35 PDT
Comment on attachment 318708 [details]
Patch

Clearing flags on attachment: 318708

Committed r220994: <http://trac.webkit.org/changeset/220994>
Comment 11 WebKit Commit Bot 2017-08-21 18:07:36 PDT
All reviewed patches have been landed.  Closing bug.
Comment 12 Radar WebKit Bug Importer 2017-08-21 18:08:15 PDT
<rdar://problem/34004174>
Comment 13 Csaba Osztrogonác 2017-08-22 03:16:21 PDT
(In reply to WebKit Commit Bot from comment #10)
> Comment on attachment 318708 [details]
> Patch
> 
> Clearing flags on attachment: 318708
> 
> Committed r220994: <http://trac.webkit.org/changeset/220994>

It broke the Apple Mac cloop and Apple Windows builds.
See build.webkit.org for details.
Comment 14 Keith Miller 2017-08-22 08:13:24 PDT
(In reply to Csaba Osztrogonác from comment #13)
> (In reply to WebKit Commit Bot from comment #10)
> > Comment on attachment 318708 [details]
> > Patch
> > 
> > Clearing flags on attachment: 318708
> > 
> > Committed r220994: <http://trac.webkit.org/changeset/220994>
> 
> It broke the Apple Mac cloop and Apple Windows builds.
> See build.webkit.org for details.

I'll take a look. Thanks!