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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 ['CC.host', '$(CC)'], | 551 ['CC.host', '$(CC)'], |
552 ['CXX.host', '$(CXX)'], | 552 ['CXX.host', '$(CXX)'], |
553 ], | 553 ], |
554 }], | 554 }], |
555 ['clang==1 and OS=="win"', { | 555 ['clang==1 and OS=="win"', { |
556 'make_global_settings': [ | 556 'make_global_settings': [ |
557 # On Windows, gyp's ninja generator only looks at CC. | 557 # On Windows, gyp's ninja generator only looks at CC. |
558 ['CC', '../<(clang_dir)/bin/clang-cl'], | 558 ['CC', '../<(clang_dir)/bin/clang-cl'], |
559 ], | 559 ], |
560 }], | 560 }], |
| 561 ['(clang==1 or host_clang==1) and OS!="win"', { |
| 562 # This is here so that all files get recompiled after a clang roll and |
| 563 # when turning clang on or off. |
| 564 # (defines are passed via the command line, and build systems rebuild |
| 565 # things when their commandline changes). Nothing should ever read this |
| 566 # define. |
| 567 'defines': ['CR_CLANG_REVISION=<!(<(DEPTH)/tools/clang/scripts/update.sh -
-print-revision)'], |
| 568 }], |
561 # TODO(yyanagisawa): supports GENERATOR==make | 569 # TODO(yyanagisawa): supports GENERATOR==make |
562 # make generator doesn't support CC_wrapper without CC | 570 # make generator doesn't support CC_wrapper without CC |
563 # in make_global_settings yet. | 571 # in make_global_settings yet. |
564 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { | 572 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { |
565 'make_global_settings': [ | 573 'make_global_settings': [ |
566 ['CC_wrapper', '<(gomadir)/gomacc'], | 574 ['CC_wrapper', '<(gomadir)/gomacc'], |
567 ['CXX_wrapper', '<(gomadir)/gomacc'], | 575 ['CXX_wrapper', '<(gomadir)/gomacc'], |
568 ['CC.host_wrapper', '<(gomadir)/gomacc'], | 576 ['CC.host_wrapper', '<(gomadir)/gomacc'], |
569 ['CXX.host_wrapper', '<(gomadir)/gomacc'], | 577 ['CXX.host_wrapper', '<(gomadir)/gomacc'], |
570 ], | 578 ], |
571 }], | 579 }], |
572 ], | 580 ], |
573 } | 581 } |
OLD | NEW |