Fix buildifier

This commit is contained in:
ozanarmagan 2023-03-16 15:26:38 +03:00
parent 12d7663143
commit 31d3003212
1 changed files with 4 additions and 4 deletions

View File

@ -197,10 +197,10 @@ def pick_cpp_toolchain(cxx):
correct path to the cxx compiler
"""
cxx_splitted = cxx.split("/")
if(cxx_splitted[-1].startswith("gcc")):
if (cxx_splitted[-1].startswith("gcc")):
cxx_splitted[-1] = cxx_splitted[-1].replace("gcc", "g++")
cxx = "/".join(cxx_splitted)
if(cxx_splitted[-1].startswith("clang")):
if (cxx_splitted[-1].startswith("clang")):
cxx_splitted[-1] = cxx_splitted[-1].replace("clang", "clang++")
cxx = "/".join(cxx_splitted)
return cxx