fix windows build issue
In windows, even use clang build, the V8_LIBC_MSVCRT was set to indicate use MSVC runtime libraries. Change to use __clang__ to determine enable cpuid magic inline assembly or not. Change-Id: I7372a27b311b695f019c5ff2d42b691d749eb607 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1715332 Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Tianyou Li <tianyou.li@intel.com> Cr-Commit-Position: refs/heads/master@{#62884}
This commit is contained in:
parent
d267c3373f
commit
2172f16cf0
@ -26,7 +26,7 @@ void CpuTraceMarkExtension::Mark(
|
||||
|
||||
#if V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64
|
||||
|
||||
#if !V8_LIBC_MSVCRT
|
||||
#if defined(__clang__)
|
||||
// for non msvc build
|
||||
uint32_t param =
|
||||
args[0]->Uint32Value(args.GetIsolate()->GetCurrentContext()).ToChecked();
|
||||
|
Loading…
Reference in New Issue
Block a user