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

Side by Side Diff: BUILD.gn

Issue 2144233003: [gn] Restore strict-aliasing for gn on mac Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: [gn] Restore strict-aliasing for gn on mac 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/arm.gni") 6 import("//build/config/arm.gni")
7 import("//build/config/dcheck_always_on.gni") 7 import("//build/config/dcheck_always_on.gni")
8 import("//build/config/mips.gni") 8 import("//build/config/mips.gni")
9 import("//build/config/sanitizers/sanitizers.gni") 9 import("//build/config/sanitizers/sanitizers.gni")
10 10
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 if (v8_target_cpu == "x64") { 284 if (v8_target_cpu == "x64") {
285 defines += [ "V8_TARGET_ARCH_X64" ] 285 defines += [ "V8_TARGET_ARCH_X64" ]
286 if (is_win) { 286 if (is_win) {
287 # Increase the initial stack size. The default is 1MB, this is 2MB. This 287 # Increase the initial stack size. The default is 1MB, this is 2MB. This
288 # applies only to executables and shared libraries produced by V8 since 288 # applies only to executables and shared libraries produced by V8 since
289 # ldflags are not pushed to dependants. 289 # ldflags are not pushed to dependants.
290 ldflags += [ "/STACK:2097152" ] 290 ldflags += [ "/STACK:2097152" ]
291 } 291 }
292 } 292 }
293 293
294 if (is_mac) {
295 cflags += [ "-fstrict-aliasing" ]
296 }
297
294 # TODO(jochen): Support v8_enable_prof on Windows. 298 # TODO(jochen): Support v8_enable_prof on Windows.
295 # TODO(jochen): Add support for compiling with simulators. 299 # TODO(jochen): Add support for compiling with simulators.
296 300
297 if (is_debug) { 301 if (is_debug) {
298 if (is_linux && v8_enable_backtrace) { 302 if (is_linux && v8_enable_backtrace) {
299 ldflags += [ "-rdynamic" ] 303 ldflags += [ "-rdynamic" ]
300 } 304 }
301 305
302 # TODO(jochen): Add support for different debug optimization levels. 306 # TODO(jochen): Add support for different debug optimization levels.
303 defines += [ 307 defines += [
(...skipping 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after
2399 2403
2400 deps = [ 2404 deps = [
2401 ":fuzzer_support", 2405 ":fuzzer_support",
2402 ] 2406 ]
2403 2407
2404 configs = [ ":internal_config" ] 2408 configs = [ ":internal_config" ]
2405 } 2409 }
2406 2410
2407 v8_fuzzer("wasm_asmjs_fuzzer") { 2411 v8_fuzzer("wasm_asmjs_fuzzer") {
2408 } 2412 }
OLDNEW
« 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