Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(886)

Unified Diff: test/cctest/BUILD.gn

Issue 2420603002: Fix import/export annotations for v8 targets that are always static (Closed)
Patch Set: updates Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8.h ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/BUILD.gn
diff --git a/test/cctest/BUILD.gn b/test/cctest/BUILD.gn
index 419927f9fa9fb238db35589b494309ed4798487b..6222b8e438f8119a202b3284dc6b049cfbc3fe8a 100644
--- a/test/cctest/BUILD.gn
+++ b/test/cctest/BUILD.gn
@@ -317,11 +317,6 @@ v8_executable("cctest") {
"../..:internal_config_base",
]
- if (is_win) {
- remove_configs = [ "//build/config/win:default_incremental_linking" ]
- configs += [ "//build/config/win:no_incremental_linking" ]
- }
-
# TODO(machenbach): Translate from gyp.
#["OS=="aix"", {
# "ldflags": [ "-Wl,-bbigtoc" ],
@@ -337,10 +332,13 @@ v8_executable("cctest") {
"//build/win:default_exe_manifest",
]
+ defines = []
+
if (is_component_build) {
# cctest can't be built against a shared library, so we
# need to depend on the underlying static target in that case.
deps += [ "../..:v8_maybe_snapshot" ]
+ defines += [ "BUILDING_V8_SHARED" ]
} else {
deps += [ "../..:v8" ]
}
@@ -364,14 +362,6 @@ v8_executable("cctest") {
# MSVS wants this for gay-{precision,shortest}.cc.
cflags += [ "/bigobj" ]
-
- # Suppress warnings about importing locally defined symbols.
- if (is_component_build) {
- ldflags += [
- "/ignore:4049",
- "/ignore:4217",
- ]
- }
}
}
@@ -427,20 +417,13 @@ v8_executable("generate-bytecode-expectations") {
"//build/win:default_exe_manifest",
]
+ defines = []
+
if (is_component_build) {
# Same as cctest, we need to depend on the underlying static target.
deps += [ "../..:v8_maybe_snapshot" ]
+ defines += [ "BUILDING_V8_SHARED" ]
} else {
deps += [ "../..:v8" ]
}
-
- if (is_win) {
- # Suppress warnings about importing locally defined symbols.
- if (is_component_build) {
- ldflags = [
- "/ignore:4049",
- "/ignore:4217",
- ]
- }
- }
}
« no previous file with comments | « include/v8.h ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698