From bb359ec0638221e83dfcdb057046224a00d232db Mon Sep 17 00:00:00 2001 From: kekxv Date: Sat, 23 Dec 2023 16:54:26 +0800 Subject: [PATCH] Update cc_toolchain_util.bzl --- foreign_cc/private/cc_toolchain_util.bzl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/foreign_cc/private/cc_toolchain_util.bzl b/foreign_cc/private/cc_toolchain_util.bzl index 6a37aec1..3f823959 100644 --- a/foreign_cc/private/cc_toolchain_util.bzl +++ b/foreign_cc/private/cc_toolchain_util.bzl @@ -379,6 +379,8 @@ def _prefix(text, from_str, prefix): (before, middle, after) = text.partition(from_str) if not middle or before.endswith("/"): return text + if before.startswith("--"): + return before + prefix + middle + after return prefix + before + middle + after def _file_name_no_ext(basename):