OLD | NEW |
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 '-fno-omit-frame-pointer', | 331 '-fno-omit-frame-pointer', |
332 '-gline-tables-only', | 332 '-gline-tables-only', |
333 '-fsanitize=memory', | 333 '-fsanitize=memory', |
334 '-fsanitize-memory-track-origins=<(msan_track_origins)', | 334 '-fsanitize-memory-track-origins=<(msan_track_origins)', |
335 '-fPIC', | 335 '-fPIC', |
336 ], | 336 ], |
337 'cflags+': [ | 337 'cflags+': [ |
338 '-fPIC', | 338 '-fPIC', |
339 ], | 339 ], |
340 'cflags!': [ | 340 'cflags!': [ |
341 '-fno-exceptions', | |
342 '-fomit-frame-pointer', | 341 '-fomit-frame-pointer', |
343 ], | 342 ], |
344 'ldflags': [ | 343 'ldflags': [ |
345 '-fsanitize=memory', | 344 '-fsanitize=memory', |
346 ], | 345 ], |
347 'defines': [ | 346 'defines': [ |
348 'MEMORY_SANITIZER', | 347 'MEMORY_SANITIZER', |
349 ], | 348 ], |
350 'dependencies': [ | 349 'dependencies': [ |
351 # Use libc++ (third_party/libc++ and third_party/libc++abi) instead of | 350 # Use libc++ (third_party/libc++ and third_party/libc++abi) instead of |
(...skipping 28 matching lines...) Expand all Loading... |
380 }], | 379 }], |
381 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 380 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
382 or OS=="netbsd" or OS=="aix"', { | 381 or OS=="netbsd" or OS=="aix"', { |
383 'target_defaults': { | 382 'target_defaults': { |
384 'cflags': [ | 383 'cflags': [ |
385 '-Wall', | 384 '-Wall', |
386 '<(werror)', | 385 '<(werror)', |
387 '-Wno-unused-parameter', | 386 '-Wno-unused-parameter', |
388 '-Wno-long-long', | 387 '-Wno-long-long', |
389 '-pthread', | 388 '-pthread', |
390 '-fno-exceptions', | |
391 '-pedantic', | 389 '-pedantic', |
392 # Don't warn about the "struct foo f = {0};" initialization pattern. | 390 # Don't warn about the "struct foo f = {0};" initialization pattern. |
393 '-Wno-missing-field-initializers', | 391 '-Wno-missing-field-initializers', |
394 ], | 392 ], |
395 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ], | 393 'cflags_cc': [ |
| 394 '-Wnon-virtual-dtor', |
| 395 '-fno-exceptions', |
| 396 '-fno-rtti', |
| 397 '-std=gnu++0x', |
| 398 ], |
396 'ldflags': [ '-pthread', ], | 399 'ldflags': [ '-pthread', ], |
397 'conditions': [ | 400 'conditions': [ |
398 [ 'clang==1 and (v8_target_arch=="x64" or v8_target_arch=="arm64")', { | 401 [ 'clang==1 and (v8_target_arch=="x64" or v8_target_arch=="arm64")', { |
399 'cflags': [ '-Wshorten-64-to-32' ], | 402 'cflags': [ '-Wshorten-64-to-32' ], |
400 }], | 403 }], |
401 [ 'host_arch=="ppc64" and OS!="aix"', { | 404 [ 'host_arch=="ppc64" and OS!="aix"', { |
402 'cflags': [ '-mminimal-toc' ], | 405 'cflags': [ '-mminimal-toc' ], |
403 }], | 406 }], |
404 [ 'visibility=="hidden" and v8_enable_backtrace==0', { | 407 [ 'visibility=="hidden" and v8_enable_backtrace==0', { |
405 'cflags': [ '-fvisibility=hidden' ], | 408 'cflags': [ '-fvisibility=hidden' ], |
406 }], | 409 }], |
407 [ 'component=="shared_library"', { | 410 [ 'component=="shared_library"', { |
408 'cflags': [ '-fPIC', ], | 411 'cflags': [ '-fPIC', ], |
409 }], | 412 }], |
410 ], | 413 ], |
411 }, | 414 }, |
412 }], | 415 }], |
413 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" | 416 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" |
414 # or OS=="netbsd"' | 417 # or OS=="netbsd"' |
415 ['OS=="qnx"', { | 418 ['OS=="qnx"', { |
416 'target_defaults': { | 419 'target_defaults': { |
417 'cflags': [ | 420 'cflags': [ |
418 '-Wall', | 421 '-Wall', |
419 '<(werror)', | 422 '<(werror)', |
420 '-Wno-unused-parameter', | 423 '-Wno-unused-parameter', |
421 '-fno-exceptions', | |
422 # Don't warn about the "struct foo f = {0};" initialization pattern. | 424 # Don't warn about the "struct foo f = {0};" initialization pattern. |
423 '-Wno-missing-field-initializers', | 425 '-Wno-missing-field-initializers', |
424 ], | 426 ], |
425 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ], | 427 'cflags_cc': [ |
| 428 '-Wnon-virtual-dtor', |
| 429 '-fno-exceptions', |
| 430 '-fno-rtti', |
| 431 '-std=gnu++0x', |
| 432 ], |
426 'conditions': [ | 433 'conditions': [ |
427 [ 'visibility=="hidden"', { | 434 [ 'visibility=="hidden"', { |
428 'cflags': [ '-fvisibility=hidden' ], | 435 'cflags': [ '-fvisibility=hidden' ], |
429 }], | 436 }], |
430 [ 'component=="shared_library"', { | 437 [ 'component=="shared_library"', { |
431 'cflags': [ '-fPIC' ], | 438 'cflags': [ '-fPIC' ], |
432 }], | 439 }], |
433 ], | 440 ], |
434 'target_conditions': [ | 441 'target_conditions': [ |
435 [ '_toolset=="host" and host_os=="linux"', { | 442 [ '_toolset=="host" and host_os=="linux"', { |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { | 646 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { |
640 'make_global_settings': [ | 647 'make_global_settings': [ |
641 ['CC_wrapper', '<(gomadir)/gomacc'], | 648 ['CC_wrapper', '<(gomadir)/gomacc'], |
642 ['CXX_wrapper', '<(gomadir)/gomacc'], | 649 ['CXX_wrapper', '<(gomadir)/gomacc'], |
643 ['CC.host_wrapper', '<(gomadir)/gomacc'], | 650 ['CC.host_wrapper', '<(gomadir)/gomacc'], |
644 ['CXX.host_wrapper', '<(gomadir)/gomacc'], | 651 ['CXX.host_wrapper', '<(gomadir)/gomacc'], |
645 ], | 652 ], |
646 }], | 653 }], |
647 ], | 654 ], |
648 } | 655 } |
OLD | NEW |