Line
Link Here
|
0 |
-- a/third_party/gpus/crosstool/cc_toolchain_config.bzl.tpl |
0 |
++ b/third_party/gpus/crosstool/cc_toolchain_config.bzl.tpl |
Lines 1434-1449
Link Here
|
1434 |
elif (ctx.attr.cpu == "local"): |
1434 |
elif (ctx.attr.cpu == "local"): |
1435 |
tool_paths = [ |
1435 |
tool_paths = [ |
1436 |
tool_path(name = "gcc", path = ctx.attr.host_compiler_path), |
1436 |
tool_path(name = "gcc", path = ctx.attr.host_compiler_path), |
1437 |
tool_path(name = "ar", path = ctx.attr.host_compiler_prefix + "/ar"), |
1437 |
tool_path(name = "ar", path = "/var/tmp/portage/sci-libs/tensorflow-2.2.0/temp/gcc-ar.sh"), |
1438 |
tool_path(name = "compat-ld", path = ctx.attr.host_compiler_prefix + "/ld"), |
1438 |
tool_path(name = "compat-ld", path = "/usr/bin/ld"), |
1439 |
tool_path(name = "cpp", path = ctx.attr.host_compiler_prefix + "/cpp"), |
1439 |
tool_path(name = "cpp", path = ctx.attr.host_compiler_prefix + "/cpp"), |
1440 |
tool_path(name = "dwp", path = ctx.attr.host_compiler_prefix + "/dwp"), |
1440 |
tool_path(name = "dwp", path = "/usr/bin/dwp"), |
1441 |
tool_path(name = "gcov", path = ctx.attr.host_compiler_prefix + "/gcov"), |
1441 |
tool_path(name = "gcov", path = ctx.attr.host_compiler_prefix + "/gcov"), |
1442 |
tool_path(name = "ld", path = ctx.attr.host_compiler_prefix + "/ld"), |
1442 |
tool_path(name = "ld", path = "/usr/bin/ld"), |
1443 |
tool_path(name = "nm", path = ctx.attr.host_compiler_prefix + "/nm"), |
1443 |
tool_path(name = "nm", path = ctx.attr.host_compiler_prefix + "/gcc-nm"), |
1444 |
tool_path(name = "objcopy", path = ctx.attr.host_compiler_prefix + "/objcopy"), |
1444 |
tool_path(name = "objcopy", path = "/usr/bin/objcopy"), |
1445 |
tool_path(name = "objdump", path = ctx.attr.host_compiler_prefix + "/objdump"), |
1445 |
tool_path(name = "objdump", path = "/usr/bin/objdump"), |
1446 |
tool_path(name = "strip", path = ctx.attr.host_compiler_prefix + "/strip"), |
1446 |
tool_path(name = "strip", path = "/usr/bin/strip"), |
1447 |
] |
1447 |
] |
1448 |
elif (ctx.attr.cpu == "darwin"): |
1448 |
elif (ctx.attr.cpu == "darwin"): |
1449 |
tool_paths = [ |
1449 |
tool_paths = [ |