Skip to content

Commit

Permalink
Fix OTP 23 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Silviu Caragea committed May 27, 2020
1 parent 993fb56 commit fee3aab
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
20 changes: 18 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,38 @@

language: erlang

matrix:

include:

- os: linux
dist: xenial
otp_release: 21.1
otp_release: 22.3

- os: linux
dist: xenial
otp_release: 20.3.8.5
otp_release: 21.3

- os: linux
dist: xenial
otp_release: 20.3

- os: linux
dist: xenial
otp_release: 19.3

- os: osx
language: generic

before_script:

- if [[ $TRAVIS_OS_NAME == linux ]]; then sudo apt-get -y update || true ; fi
- if [[ $TRAVIS_OS_NAME == linux ]]; then sudo apt-get install -y g++ make cmake || true ; fi

- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ $TRAVIS_OS_NAME == osx ]]; then brew install erlang cmake || true; fi

- curl https://s3.amazonaws.com/rebar3/rebar3 --output rebar3 && chmod +x rebar3

script:
- ./rebar3 compile
2 changes: 1 addition & 1 deletion c_src/nif.mk
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ endif

CFLAGS += -fPIC -I $(ERTS_INCLUDE_DIR) -I $(ERL_INTERFACE_INCLUDE_DIR)
CXXFLAGS += -fPIC -I $(ERTS_INCLUDE_DIR) -I $(ERL_INTERFACE_INCLUDE_DIR)
LDFLAGS += -L $(ERL_INTERFACE_LIB_DIR) -shared -lerl_interface -lei
LDFLAGS += -L $(ERL_INTERFACE_LIB_DIR) -shared -lei

# Verbosity.

Expand Down
2 changes: 1 addition & 1 deletion src/ezstd.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{description,"zstd binding for erlang"},
{licenses, ["MIT"]},
{links,[{"Github","https://github.com/silviucpp/ezstd"}]},
{vsn, "1.0.1"},
{vsn, "1.0.2"},
{registered, []},
{applications, [
kernel,
Expand Down

0 comments on commit fee3aab

Please sign in to comment.