| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 # Xcode insists on this empty entry. | 192 # Xcode insists on this empty entry. |
| 193 }, | 193 }, |
| 194 }, | 194 }, |
| 195 'target_conditions': [ | 195 'target_conditions': [ |
| 196 ['v8_code == 0', { | 196 ['v8_code == 0', { |
| 197 'defines!': [ | 197 'defines!': [ |
| 198 'DEBUG', | 198 'DEBUG', |
| 199 ], | 199 ], |
| 200 'conditions': [ | 200 'conditions': [ |
| 201 ['os_posix == 1 and OS != "mac"', { | 201 ['os_posix == 1 and OS != "mac"', { |
| 202 # We don't want to get warnings from third-party code, |
| 203 # so remove any existing warning-enabling flags like -Wall. |
| 202 'cflags!': [ | 204 'cflags!': [ |
| 205 '-pedantic', |
| 206 '-Wall', |
| 203 '-Werror', | 207 '-Werror', |
| 208 '-Wextra', |
| 209 ], |
| 210 # Clang considers the `register` keyword as deprecated, but |
| 211 # icu uses it all over the place. |
| 212 'cflags+': [ |
| 213 '-Wno-deprecated-register', |
| 214 ], |
| 215 'cflags_cc!': [ |
| 216 '-Wnon-virtual-dtor', |
| 204 ], | 217 ], |
| 205 }], | 218 }], |
| 206 ['OS == "mac"', { | 219 ['OS == "mac"', { |
| 207 'xcode_settings': { | 220 'xcode_settings': { |
| 208 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror | 221 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror |
| 209 }, | 222 }, |
| 210 }], | 223 }], |
| 211 ['OS == "win"', { | 224 ['OS == "win"', { |
| 212 'msvs_settings': { | 225 'msvs_settings': { |
| 213 'VCCLCompilerTool': { | 226 'VCCLCompilerTool': { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime', | 292 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime', |
| 280 ], | 293 ], |
| 281 }, | 294 }, |
| 282 }], | 295 }], |
| 283 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 296 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
| 284 or OS=="netbsd" or OS=="aix"', { | 297 or OS=="netbsd" or OS=="aix"', { |
| 285 'target_defaults': { | 298 'target_defaults': { |
| 286 'cflags': [ | 299 'cflags': [ |
| 287 '-Wall', | 300 '-Wall', |
| 288 '<(werror)', | 301 '<(werror)', |
| 289 '-W', | |
| 290 '-Wno-unused-parameter', | 302 '-Wno-unused-parameter', |
| 291 '-Wno-long-long', | 303 '-Wno-long-long', |
| 292 '-pthread', | 304 '-pthread', |
| 293 '-fno-exceptions', | 305 '-fno-exceptions', |
| 294 '-pedantic', | 306 '-pedantic', |
| 295 # Don't warn about the "struct foo f = {0};" initialization pattern. | 307 # Don't warn about the "struct foo f = {0};" initialization pattern. |
| 296 '-Wno-missing-field-initializers', | 308 '-Wno-missing-field-initializers', |
| 297 ], | 309 ], |
| 298 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ], | 310 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ], |
| 299 'ldflags': [ '-pthread', ], | 311 'ldflags': [ '-pthread', ], |
| (...skipping 10 matching lines...) Expand all Loading... |
| 310 ], | 322 ], |
| 311 }, | 323 }, |
| 312 }], | 324 }], |
| 313 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" | 325 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" |
| 314 # or OS=="netbsd"' | 326 # or OS=="netbsd"' |
| 315 ['OS=="qnx"', { | 327 ['OS=="qnx"', { |
| 316 'target_defaults': { | 328 'target_defaults': { |
| 317 'cflags': [ | 329 'cflags': [ |
| 318 '-Wall', | 330 '-Wall', |
| 319 '<(werror)', | 331 '<(werror)', |
| 320 '-W', | |
| 321 '-Wno-unused-parameter', | 332 '-Wno-unused-parameter', |
| 322 '-fno-exceptions', | 333 '-fno-exceptions', |
| 323 # Don't warn about the "struct foo f = {0};" initialization pattern. | 334 # Don't warn about the "struct foo f = {0};" initialization pattern. |
| 324 '-Wno-missing-field-initializers', | 335 '-Wno-missing-field-initializers', |
| 325 ], | 336 ], |
| 326 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ], | 337 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ], |
| 327 'conditions': [ | 338 'conditions': [ |
| 328 [ 'visibility=="hidden"', { | 339 [ 'visibility=="hidden"', { |
| 329 'cflags': [ '-fvisibility=hidden' ], | 340 'cflags': [ '-fvisibility=hidden' ], |
| 330 }], | 341 }], |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', | 464 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', |
| 454 'PREBINDING': 'NO', # No -Wl,-prebind | 465 'PREBINDING': 'NO', # No -Wl,-prebind |
| 455 'SYMROOT': '<(DEPTH)/xcodebuild', | 466 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 456 'USE_HEADERMAP': 'NO', | 467 'USE_HEADERMAP': 'NO', |
| 457 'OTHER_CFLAGS': [ | 468 'OTHER_CFLAGS': [ |
| 458 '-fno-strict-aliasing', | 469 '-fno-strict-aliasing', |
| 459 ], | 470 ], |
| 460 'WARNING_CFLAGS': [ | 471 'WARNING_CFLAGS': [ |
| 461 '-Wall', | 472 '-Wall', |
| 462 '-Wendif-labels', | 473 '-Wendif-labels', |
| 463 '-W', | |
| 464 '-Wno-unused-parameter', | 474 '-Wno-unused-parameter', |
| 465 # Don't warn about the "struct foo f = {0};" initialization pattern. | 475 # Don't warn about the "struct foo f = {0};" initialization pattern. |
| 466 '-Wno-missing-field-initializers', | 476 '-Wno-missing-field-initializers', |
| 467 ], | 477 ], |
| 468 }, | 478 }, |
| 469 'conditions': [ | 479 'conditions': [ |
| 470 ['werror==""', { | 480 ['werror==""', { |
| 471 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO'}, | 481 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO'}, |
| 472 }, { | 482 }, { |
| 473 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'}, | 483 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'}, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { | 526 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { |
| 517 'make_global_settings': [ | 527 'make_global_settings': [ |
| 518 ['CC_wrapper', '<(gomadir)/gomacc'], | 528 ['CC_wrapper', '<(gomadir)/gomacc'], |
| 519 ['CXX_wrapper', '<(gomadir)/gomacc'], | 529 ['CXX_wrapper', '<(gomadir)/gomacc'], |
| 520 ['CC.host_wrapper', '<(gomadir)/gomacc'], | 530 ['CC.host_wrapper', '<(gomadir)/gomacc'], |
| 521 ['CXX.host_wrapper', '<(gomadir)/gomacc'], | 531 ['CXX.host_wrapper', '<(gomadir)/gomacc'], |
| 522 ], | 532 ], |
| 523 }], | 533 }], |
| 524 ], | 534 ], |
| 525 } | 535 } |
| OLD | NEW |