Skip to content

Commit

Permalink
rename suffix from dylib to so on macOS. fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Apr 23, 2022
1 parent 443701b commit 282423b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
# artifact_name: emacs/omg-dyn.dll
# asset_name: omg-dyn.dll
- os: macos-latest
artifact_name: emacs/omg-dyn.dylib
asset_name: macos-x86-64-omg-dyn.dylib
artifact_name: emacs/omg-dyn.so
asset_name: macos-x86-64-omg-dyn.so

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ else
uname_S := $(shell uname -s)
endif

# On macOS, dynamic modules can also have the suffix .so in addition to .dylib.
SO_FILE = $(EMACS_DIR)/omg-dyn.so
ifeq ($(uname_S), Windows)
SO_FILE = $(EMACS_DIR)/omg-dyn.dll
endif
ifeq ($(uname_S), Darwin)
SO_FILE = $(EMACS_DIR)/omg-dyn.dylib
endif

CLI = omg-cli
OBJECTS = $(CORE_DIR)/omg.o $(CLI_DIR)/cli.o $(EMACS_DIR)/emacs.o
Expand Down

0 comments on commit 282423b

Please sign in to comment.