Skip to content

Commit

Permalink
Simplify macOs setup
Browse files Browse the repository at this point in the history
We no longer use cross-compilation, so remove macOs-specific compilation
flags.
  • Loading branch information
jlaine committed May 19, 2024
1 parent d911a8e commit 2c9564a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
fail-fast: false
matrix:
include:
- os: macos-latest
- os: macos-14
arch: arm64
- os: macos-latest
- os: macos-13
arch: x86_64
- os: ubuntu-latest
arch: aarch64
Expand Down
17 changes: 2 additions & 15 deletions scripts/build-codecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,6 @@ def run(cmd):
os.chdir(build_dir)

prepend_env("PATH", os.path.join(dest_dir, "bin"), separator=":")
if platform.system() == "Darwin" and os.environ.get("ARCHFLAGS") == "-arch arm64":
opus_configure_args = [
"--build",
"x86_64-apple-darwin20.6.0",
"--host",
"amd64-apple-darwin20.6.0",
]
vpx_configure_args = ["--target=arm64-darwin20-gcc"]
else:
opus_configure_args = []
vpx_configure_args = []

#### BUILD TOOLS ####

Expand All @@ -127,8 +116,7 @@ def run(cmd):
"--disable-shared",
"--enable-static",
"--with-pic",
]
+ opus_configure_args,
],
)

# build vpx
Expand All @@ -140,8 +128,7 @@ def run(cmd):
"--disable-tools",
"--disable-unit-tests",
"--enable-pic",
]
+ vpx_configure_args,
],
)

run(["tar", "czvf", output_tarball, "-C", dest_dir, "include", "lib"])

0 comments on commit 2c9564a

Please sign in to comment.