Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Build: account for gcc/g++ versioned binary names

Kishore Nallanbdb667eb03f4
diff --git a/bazel/foreign_cc.patch b/bazel/foreign_cc.patch
index 08b8ee9f..12ca65b0 100644
--- a/bazel/foreign_cc.patch
+++ b/bazel/foreign_cc.patch
@@ -22,11 +22,11 @@
+ action_name = ACTION_NAMES.cpp_compile,
+ )
+ cxx_splitted = cxx.split("/")
-+ if(cxx_splitted[-1] == "gcc"):
-+ cxx_splitted[-1] = "g++"
++ if(cxx_splitted[-1].startswith("gcc")):
++ cxx_splitted[-1] = cxx_splitted[-1].replace("gcc", "g++")
+ cxx = "/".join(cxx_splitted)
-+ if(cxx_splitted[-1] == "clang"):
-+ cxx_splitted[-1] = "clang++"
++ if(cxx_splitted[-1].startswith("clang")):
++ cxx_splitted[-1] = cxx_splitted[-1].replace("clang", "clang++")
+ cxx = "/".join(cxx_splitted)
+
return CxxToolsInfo(