Skip to content

Commit

Permalink
Don't use static linking on osx.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign committed Mar 18, 2018
1 parent 70a5a0f commit cab835e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ os:

before_deploy:
- mkdir build
- crystal build src/mint.cr -o build/mint-${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME --release --no-debug --static
- if [ $TRAVIS_OS_NAME == "osx" ]; then
crystal build src/mint.cr -o build/mint-${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME --release --no-debug
else
crystal build src/mint.cr -o build/mint-${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME --release --no-debug --static
fi

deploy:
- provider: s3
Expand Down

2 comments on commit cab835e

@s0kil
Copy link
Contributor

@s0kil s0kil commented on cab835e Jan 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for no "static linking on osx"?

@gdotdesign
Copy link
Member Author

@gdotdesign gdotdesign commented on cab835e Jan 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

macOS doesn't officially support static linking because the required system libraries are not available as static libraries.

https://github.com/crystal-lang/crystal/wiki/Static-Linking

Please sign in to comment.