Ignore:
Timestamp:
Oct 29, 2020, 2:38:30 PM (5 years ago)
Author:
[email protected]
Message:

JavaScriptCore should support multiple build variants
<https://webkit.org/b/218347>
<rdar://problem/70786057>

Patch by Jérôme Decoodt <[email protected]> on 2020-10-29
Reviewed by Keith Miller.

Update JavaScriptCore to handle BUILD_VARIANTS properly by
passing the value to build phase scripts and handling all
variants set during the build. For engineering builds,
BUILD_VARIANTS=normal.

  • CMakeLists.txt:
  • Update to pass equivalent ${BUILD_VARIANTS} for non-Apple platforms to asm.rb and generate_offset_extractor.rb.

(LLInt Offsets | Generate Derived Sources):
(Offline Assembler | Offline Assemble):

  • Update build phase script to pass "${BUILD_VARIANTS}" as an argument to scripts.
  • offlineasm/asm.rb:
  • Parse BUILD_VARIANTS argument to pass to offsetsAndConfigurationIndexForVariants().
  • offlineasm/generate_offset_extractor.rb:
  • Parse BUILD_VARIANTS argument to pass to configurationIndicesForVariants().
  • offlineasm/offsets.rb:

(offsetsAndConfigurationIndex):

  • Update argument list in comment block.

(offsetsAndConfigurationIndexForVariants): Add.

  • Invoke offsetsAndConfigurationIndex() for each build variant.

(configurationIndices):

  • Update argument list in comment block.

(configurationIndicesForVariants): Add.

  • Invoke configurationIndices() for each build variant.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/offlineasm/asm.rb

    r264616 r269171  
    332332offsetsFile = ARGV.shift
    333333outputFlnm = ARGV.shift
     334variants = ARGV.shift.split(/[,\s]+/)
    334335
    335336$options = {}
     
    343344
    344345begin
    345     configurationList = offsetsAndConfigurationIndex(offsetsFile)
     346    configurationList = offsetsAndConfigurationIndexForVariants(offsetsFile, variants)
    346347rescue MissingMagicValuesException
    347348    $stderr.puts "offlineasm: No magic values found. Skipping assembly file generation."
Note: See TracChangeset for help on using the changeset viewer.