Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics committed Feb 6, 2024
1 parent 94349d7 commit da940c7
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions run_conan.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,23 @@ def main():
os.makedirs(conan_home, exist_ok=True)

cc = os.getenv("CC")
if cc is not None:
new_cc = os.path.join(conan_home, "gcc")
if not os.path.exists(new_cc):
os.symlink(cc, new_cc)
os.environ["CC"] = new_cc

new_cc = os.path.join(conan_home, "gcc")
try:
os.symlink(cc, new_cc)
except FileExistsError:
pass
os.environ["CC"] = new_cc

cxx = os.getenv("CXX")
if cxx is not None:
new_cxx = os.path.join(conan_home, "g++")
if not os.path.exists(new_cxx):

try:
os.symlink(cxx, new_cxx)
os.environ["CXX"] = new_cxx
except FileExistsError:
pass
os.environ["CXX"] = new_cxx

run_conan_profile_detect(conan)
run_conan_install(conan)
Expand Down

0 comments on commit da940c7

Please sign in to comment.