• dpranke's avatar
    Land chromium-side work to clean up handling of v8_target_cpu in the GN build. · 8a2de90d
    dpranke authored
    Currently v8_target_cpu can only be set to one particular architecture,
    and that won't work for monochrome/webview builds where we need
    to be able to build two different snapshots for two different architectures.
    
    The way things are set are also confusing for when you need to do builds
    for a target_cpu that is different from the host_cpu and the value of the
    v8_target_cpu might get out of sync between target and host.
    
    This change changes all that by making the cpu that v8 targets
    a function of the current toolchain (thus declaring a v8_current_cpu
    and using that instead).
    
    R=brettw@chromium.org, jochen@chromium.org, michaelbai@chromium.org
    
    BUG=625353
    
    Review-Url: https://codereview.chromium.org/2116183002
    Cr-Commit-Position: refs/heads/master@{#405551}
    8a2de90d
js2gtest.gni 4.1 KB