Commit 2172f16c authored by Tianyou Li's avatar Tianyou Li Committed by Commit Bot

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/+/1715332Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Tianyou Li <tianyou.li@intel.com>
Cr-Commit-Position: refs/heads/master@{#62884}
parent d267c337
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment