build: add flag to build CRT flavor agnostic Windows libraries (#690)

Fixes: #586
Fixes: denoland/deno#10378
This commit is contained in:
Bert Belder 2021-05-11 18:57:49 +02:00
parent 6d25d19b4c
commit be1c2073ec
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461
3 changed files with 7 additions and 8 deletions

1
.gn
View File

@ -32,5 +32,6 @@ default_args = {
v8_use_external_startup_data = false
v8_use_snapshot = true
is_component_build = false
win_crt_flavor_agnostic = true
symbol_level = 1
}

View File

@ -18,7 +18,11 @@ static_library("rusty_v8") {
}
config("rusty_v8_config") {
configs = [ "//v8:external_config", "//v8:toolchain", "//v8:features" ]
configs = [
"//v8:external_config",
"//v8:toolchain",
"//v8:features",
]
cflags = []
# We need these directories in the search path to be able to include some
@ -42,10 +46,4 @@ config("rusty_v8_config") {
if (is_debug && is_clang && !is_win) {
cflags += [ "-glldb" ]
}
if (is_win) {
# The `/Zl` ("omit default library name") flag makes the compiler produce
# object files that can link with both the static and dynamic CRT.
cflags += [ "/Zl" ]
}
}

2
build

@ -1 +1 @@
Subproject commit 8e55a6521cfbec39fe736537483192ef6af54d36
Subproject commit e10aa6b45bd82ec89d827724d1074058a28ba04a