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 eed35de commit 94349d7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions run_conan.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,16 @@ def main():
cc = os.getenv("CC")
if cc is not None:
new_cc = os.path.join(conan_home, "gcc")
os.symlink(cc, new_cc)
os.environ["CC"] = new_cc
if not os.path.exists(new_cc):
os.symlink(cc, new_cc)
os.environ["CC"] = new_cc

cxx = os.getenv("CXX")
if cxx is not None:
new_cxx = os.path.join(conan_home, "g++")
os.symlink(cc, new_cxx)
os.environ["CC"] = new_cxx
if not os.path.exists(new_cxx):
os.symlink(cxx, new_cxx)
os.environ["CXX"] = new_cxx

run_conan_profile_detect(conan)
run_conan_install(conan)
Expand Down

0 comments on commit 94349d7

Please sign in to comment.