mirror of https://github.com/bazelbuild/rules_cc
Fix rule-based implementation of runtime_library_search_directories
BEGIN_PUBLIC Fix rule-based implementation of runtime_library_search_directories As runtime_library_search_directories was written and reorganized through review, some instances of `$ORIGIN` were unintentionally renamed to `$EXEC_ORIGIN`. This change fixes those instances to correctly mirror CppActionConfigs.java. END_PUBLIC BUG: 349427627 PiperOrigin-RevId: 672401255 Change-Id: Ic20f9e77eccca8bc7e7f895aeaeb44f85022df28
This commit is contained in:
parent
ca8483971c
commit
b8bb882895
|
@ -77,7 +77,7 @@ cc_nested_args(
|
||||||
"-Xlinker",
|
"-Xlinker",
|
||||||
] + select({
|
] + select({
|
||||||
"@platforms//os:macos": ["@loader_path/{search_path}"],
|
"@platforms//os:macos": ["@loader_path/{search_path}"],
|
||||||
"//conditions:default": ["$EXEC_ORIGIN/{search_path}"],
|
"//conditions:default": ["$ORIGIN/{search_path}"],
|
||||||
}),
|
}),
|
||||||
format = {
|
format = {
|
||||||
"search_path": "//cc/toolchains/variables:runtime_library_search_directories",
|
"search_path": "//cc/toolchains/variables:runtime_library_search_directories",
|
||||||
|
@ -113,7 +113,7 @@ cc_nested_args(
|
||||||
"-Xlinker",
|
"-Xlinker",
|
||||||
] + select({
|
] + select({
|
||||||
"@platforms//os:macos": ["@loader_path/{search_path}"],
|
"@platforms//os:macos": ["@loader_path/{search_path}"],
|
||||||
"//conditions:default": ["$EXEC_ORIGIN/{search_path}"],
|
"//conditions:default": ["$ORIGIN/{search_path}"],
|
||||||
}),
|
}),
|
||||||
format = {
|
format = {
|
||||||
"search_path": "//cc/toolchains/variables:runtime_library_search_directories",
|
"search_path": "//cc/toolchains/variables:runtime_library_search_directories",
|
||||||
|
|
|
@ -21,7 +21,7 @@ flag_sets {
|
||||||
flags: "-Xlinker"
|
flags: "-Xlinker"
|
||||||
flags: "-rpath"
|
flags: "-rpath"
|
||||||
flags: "-Xlinker"
|
flags: "-Xlinker"
|
||||||
flags: "$EXEC_ORIGIN/%{runtime_library_search_directories}"
|
flags: "$ORIGIN/%{runtime_library_search_directories}"
|
||||||
}
|
}
|
||||||
iterate_over: "runtime_library_search_directories"
|
iterate_over: "runtime_library_search_directories"
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ flag_sets {
|
||||||
flags: "-Xlinker"
|
flags: "-Xlinker"
|
||||||
flags: "-rpath"
|
flags: "-rpath"
|
||||||
flags: "-Xlinker"
|
flags: "-Xlinker"
|
||||||
flags: "$EXEC_ORIGIN/%{runtime_library_search_directories}"
|
flags: "$ORIGIN/%{runtime_library_search_directories}"
|
||||||
iterate_over: "runtime_library_search_directories"
|
iterate_over: "runtime_library_search_directories"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue