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

Unified Diff: test/cctest/BUILD.gn

Issue 2171263002: [gn] Migrate more custom cflags from gyp to gn (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Created 4 years, 5 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 | « no previous file | no next file » | 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 71e9eb0d2c0296a68f3a22a1b416efea04cb9f18..649a7963bfbe68819f00d388c1e2efa23c203844 100644
--- a/test/cctest/BUILD.gn
+++ b/test/cctest/BUILD.gn
@@ -47,13 +47,6 @@ v8_executable("cctest") {
sources += [ "test-platform-linux.cc" ]
} else if (is_win) {
sources += [ "test-platform-win32.cc" ]
- # TODO(machenbach): Translate from gyp.
- # "msvs_settings": {
- # "VCCLCompilerTool": {
- # # MSVS wants this for gay-{precision,shortest}.cc.
- # "AdditionalOptions": ["/bigobj"],
- # },
- # },
}
configs = [
@@ -62,15 +55,6 @@ v8_executable("cctest") {
]
# TODO(machenbach): Translate from gyp.
- #['v8_current_cpu=="ppc" or v8_current_cpu=="ppc64" \
- # or v8_current_cpu=="arm" or v8_current_cpu=="arm64" \
- # or v8_current_cpu=="s390" or v8_current_cpu=="s390x"', {
- # # disable fmadd/fmsub so that expected results match generated code in
- # # RunFloat64MulAndFloat64Add1 and friends.
- # 'cflags': ['-ffp-contract=off'],
- #}],
-
- # TODO(machenbach): Translate from gyp.
#["OS=="aix"", {
vogelheim 2016/07/22 09:45:25 .. Since you now had ldflags, this would trivially
Michael Achenbach 2016/07/22 09:49:45 Like to keep it separate as I have no clue about A
# "ldflags": [ "-Wl,-bbigtoc" ],
#}],
@@ -90,15 +74,29 @@ v8_executable("cctest") {
deps += [ "../..:v8" ]
}
+ cflags = []
+ ldflags = []
+
+ if (v8_current_cpu == "ppc" || v8_current_cpu == "ppc64" ||
+ v8_current_cpu=="arm" || v8_current_cpu=="arm64" ||
vogelheim 2016/07/22 09:45:25 style nitpick: please unify whitespace around the
Michael Achenbach 2016/07/22 09:49:45 Done.
+ v8_current_cpu=="s390" || v8_current_cpu=="s390x") {
+ # Disable fmadd/fmsub so that expected results match generated code in
+ # RunFloat64MulAndFloat64Add1 and friends.
+ cflags += [ "-ffp-contract=off" ]
+ }
+
if (is_win) {
# This warning is benignly triggered by the U16 and U32 macros in
# bytecode-utils.h.
# C4309: 'static_cast': truncation of constant value
- cflags = [ "/wd4309" ]
+ cflags += [ "/wd4309" ]
+
+ # MSVS wants this for gay-{precision,shortest}.cc.
+ cflags += [ "/bigobj" ]
# Suppress warnings about importing locally defined symbols.
if (is_component_build) {
- ldflags = [
+ ldflags += [
"/ignore:4049",
"/ignore:4217",
]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698