2
0
Fork 0
mirror of https://github.com/bazelbuild/rules_cc synced 2024-11-27 20:43:26 +00:00

Merge pull request #84 from benjaminp:fix-for-linkops

PiperOrigin-RevId: 339049823
Change-Id: Ia7550ae25cbe5bac936e86b458f7f322c6f258a0
This commit is contained in:
Copybara-Service 2020-10-26 09:06:42 -07:00
commit b2f6e22c34

View file

@ -10,7 +10,7 @@ def _linking_suffix_test_impl(ctx):
actions = analysistest.target_actions(env)
for arg in reversed(actions[1].argv):
if arg.find(".a") != -1 or arg.find("-l") != -1:
if (arg.find(".a") != -1 or arg.find("-l") != -1) and "/" in arg:
asserts.equals(env, "liba_suffix.a", arg[arg.rindex("/") + 1:])
break