Commit f5ba52e2 authored by tzik's avatar tzik Committed by Commit Bot

Fix no-inline compiler flag on Windows

-fno-inline is unavailable on clang-cl nor cl.exe, and causes a build
failure on Windows bot.
This CL updates that flag to "/Ob0", which is msvc-equivalent of
-fno-inline.

Change-Id: Id9ffed03a855ac0b773ee28625472de664c3cb30
Reviewed-on: https://chromium-review.googlesource.com/c/1442013Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
Cr-Commit-Position: refs/heads/master@{#59185}
parent 40892994
...@@ -593,10 +593,14 @@ config("toolchain") { ...@@ -593,10 +593,14 @@ config("toolchain") {
} }
if (v8_no_inline) { if (v8_no_inline) {
cflags += [ if (is_win) {
"-fno-inline-functions", cflags += [ "/Ob0" ]
"-fno-inline", } else {
] cflags += [
"-fno-inline-functions",
"-fno-inline",
]
}
} }
if (is_clang) { if (is_clang) {
......
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