Skip to content

Commit

Permalink
add emscripten-32 support
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Sep 13, 2023
1 parent bf8caf5 commit 4cb00b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion conda_build/environ.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def get_shlib_ext(host_platform):
return ".dll"
elif host_platform in ["osx", "darwin"]:
return ".dylib"
elif host_platform.startswith("linux"):
elif host_platform.startswith("linux") or host_platform.startswith("emscripten"):
return ".so"
elif host_platform == "noarch":
# noarch packages should not contain shared libraries, use the system
Expand Down
3 changes: 3 additions & 0 deletions conda_build/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ def get_selectors(config: Config) -> dict[str, bool]:
linux=plat.startswith("linux-"),
linux32=bool(plat == "linux-32"),
linux64=bool(plat == "linux-64"),
emscripten=plat.startswith('emscripten-'),
emscripten32=bool(plat == 'emscripten-32'),
unix=plat.startswith(('linux-', 'osx-', 'emscripten-')),
arm=plat.startswith("linux-arm"),
osx=plat.startswith("osx-"),
unix=plat.startswith(("linux-", "osx-")),
Expand Down
1 change: 1 addition & 0 deletions conda_build/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def glob(pathname, recursive=True):
mmap_PROT_WRITE = 0 if on_win else mmap.PROT_WRITE

DEFAULT_SUBDIRS = {
"emscripten-32",
"linux-64",
"linux-32",
"linux-s390x",
Expand Down

0 comments on commit 4cb00b2

Please sign in to comment.