Skip to content

Commit

Permalink
chdir in check.py
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Jul 22, 2024
1 parent 377f576 commit 50cabc3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions offlineASL-cpp/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,26 @@
import os
import shutil
import subprocess
from pathlib import Path

clangpp = shutil.which('clang++')
true = shutil.which('true')
assert clangpp
assert true

def main():
os.environ['CXX'] = str(clangpp)
assert clangpp and true

os.chdir(Path(__file__).parent)

os.environ['CXX'] = clangpp

subprocess.check_call('meson setup --reconfigure build'.split())

with open('build/build.ninja', 'rb') as f:
build = f.readlines()

bstr = lambda x: str(x).encode('utf-8')
bstr = lambda x: x.encode('utf-8')

# replacement rules, keyed by sentinel line, and values are
# replacements to perform on the NEXT line.
Expand Down

0 comments on commit 50cabc3

Please sign in to comment.