|
Lines 1395-1421
Link Here
|
| 1395 |
} |
1395 |
} |
| 1396 |
} |
1396 |
} |
| 1397 |
|
1397 |
|
| 1398 |
config("clang_revision") { |
|
|
| 1399 |
if (is_clang && clang_base_path == default_clang_base_path) { |
| 1400 |
update_args = [ |
| 1401 |
"--print-revision", |
| 1402 |
"--verify-version=$clang_version", |
| 1403 |
] |
| 1404 |
if (llvm_force_head_revision) { |
| 1405 |
update_args += [ "--llvm-force-head-revision" ] |
| 1406 |
} |
| 1407 |
clang_revision = exec_script("//tools/clang/scripts/update.py", |
| 1408 |
update_args, |
| 1409 |
"trim string") |
| 1410 |
|
| 1411 |
# This is here so that all files get recompiled after a clang roll and |
| 1412 |
# when turning clang on or off. (defines are passed via the command line, |
| 1413 |
# and build system rebuild things when their commandline changes). Nothing |
| 1414 |
# should ever read this define. |
| 1415 |
defines = [ "CR_CLANG_REVISION=\"$clang_revision\"" ] |
| 1416 |
} |
| 1417 |
} |
| 1418 |
|
| 1419 |
config("rustc_revision") { |
1398 |
config("rustc_revision") { |
| 1420 |
if (rustc_revision != "") { |
1399 |
if (rustc_revision != "") { |
| 1421 |
# Similar to the above config, this is here so that all files get recompiled |
1400 |
# Similar to the above config, this is here so that all files get recompiled |