• Jakob Gruber's avatar
    [build] Define V8_TARGET_OS_ and consider it in x64 codegen · 99d31b43
    Jakob Gruber authored
    This CL allows us to distinguish between the host- and target OS. The
    host OS is defined by V8_OS_ macros (e.g. V8_OS_WIN). The target OS is
    defined by V8_TARGET_OS_ macros (e.g. V8_TARGET_OS_WIN).
    
    V8_TARGET_OS_ macros are defined by gn, based on the `target_os` gn
    variable. If a V8_TARGET_OS_ is set, we also define V8_HAVE_TARGET_OS
    (this determines fall-back behavior in V8; if it is not defined, we set
    V8_TARGET_OS_ to equal the equivalent V8_OS_ define).
    
    Besides adding the defines, this CL also adds logic to consider the
    target OS in codegen. Specifically, x64 builds now look at the
    V8_TARGET_OS_WIN define instead of V8_OS_WIN or _WIN64. This
    effectively makes cross-compilation to x64 Windows in mksnapshot
    possible.
    
    In future work, we could add similar support for cross-compiling to
    other platforms such as ia32 Windows.
    
    Bug: v8:9736,chromium:803591
    Change-Id: I689f3de8c206b743c4bef703f5ade0bba32ce995
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1809374Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
    Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
    Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
    Commit-Queue: Jakob Gruber <jgruber@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#63892}
    99d31b43
Name
Last commit
Last update
..
arm Loading commit data...
arm64 Loading commit data...
ia32 Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc Loading commit data...
s390 Loading commit data...
x64 Loading commit data...
OWNERS Loading commit data...
arguments-inl.h Loading commit data...
arguments.cc Loading commit data...
arguments.h Loading commit data...
execution.cc Loading commit data...
execution.h Loading commit data...
frame-constants.h Loading commit data...
frames-inl.h Loading commit data...
frames.cc Loading commit data...
frames.h Loading commit data...
futex-emulation.cc Loading commit data...
futex-emulation.h Loading commit data...
interrupts-scope.cc Loading commit data...
interrupts-scope.h Loading commit data...
isolate-data.h Loading commit data...
isolate-inl.h Loading commit data...
isolate-utils-inl.h Loading commit data...
isolate-utils.h Loading commit data...
isolate.cc Loading commit data...
isolate.h Loading commit data...
messages.cc Loading commit data...
messages.h Loading commit data...
microtask-queue.cc Loading commit data...
microtask-queue.h Loading commit data...
protectors-inl.h Loading commit data...
protectors.cc Loading commit data...
protectors.h Loading commit data...
runtime-profiler.cc Loading commit data...
runtime-profiler.h Loading commit data...
simulator-base.cc Loading commit data...
simulator-base.h Loading commit data...
simulator.h Loading commit data...
stack-guard.cc Loading commit data...
stack-guard.h Loading commit data...
thread-id.cc Loading commit data...
thread-id.h Loading commit data...
thread-local-top.cc Loading commit data...
thread-local-top.h Loading commit data...
v8threads.cc Loading commit data...
v8threads.h Loading commit data...
vm-state-inl.h Loading commit data...
vm-state.h Loading commit data...