Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfouilleul committed Nov 5, 2024
1 parent 88869f7 commit 403434a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ jobs:

- name: install autotools
run: |
which clang
brew install autoconf automake libtool
which clang
- uses: actions/checkout@v4

Expand Down
16 changes: 15 additions & 1 deletion scripts/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,10 +589,24 @@ def build_fribidi(release=False):


# build wasm
clang = 'clang'

#NOTE(martin): this is an extremely stupid workaround to play well with github CI runners, which
# have llvm clang only accessible through $(brew --prefix llvm@15), whereas locally we could want to
# use another version.
# TODO: we should probably pass a flag to inform the script it's running in CI. This would avoid picking
# llvm 15 when a later version is available locally?
if platform.system() == "Darwin":
try:
brew_llvm = subprocess.check_output(["brew", "--prefix", "llvm@15", "--installed"], stderr=subprocess.DEVNULL).decode().strip()
except subprocess.CalledProcessError:
brew_llvm = subprocess.check_output(["brew", "--prefix", "llvm", "--installed"]).decode().strip()
clang = os.path.join(brew_llvm, 'bin', 'clang')

source_files = glob.glob("lib/*.c");

subprocess.run([
"clang",
clang,
"--target=wasm32",
"--no-standard-libraries",
"-mbulk-memory",
Expand Down

0 comments on commit 403434a

Please sign in to comment.