Skip to content

Improve development script #1902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 4, 2020
Merged

Conversation

kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Oct 3, 2020

I always use this custom build-preset to build on local machine because we don't need to build other packages like SwiftPM or Foundation when debugging compiler. This PR separate build-presets into "build" and "install" presets.

When developing compiler and want to build only the target compiler, you can build with the below command.

$ ./utils/build-script --preset=webassembly-macos-target --preset-file ../build-presets.ini  \
        SOURCE_PATH=$(dirname $(pwd)) \
        TOOLS_BIN_DIR=/usr/local/opt/llvm/bin \
        C_CXX_LAUNCHER=$(which sccache)

I'll update how to build section in swiftwasm-book.

brew install cmake ninja llvm sccache wasmer
if [[ ! -z "$CI" ]]; then
brew uninstall $(brew list | grep python@2)
brew install cmake ninja llvm sccache wasmer

Choose a reason for hiding this comment

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

I'd move this line outside of the if block to allow people who don't have these dependencies installed to build locally. If they do have those installed, this line won't have any destructive effect.

Copy link

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

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

Thank you!

@kateinoigakukun kateinoigakukun merged commit a9740c9 into swiftwasm Oct 4, 2020
@kateinoigakukun kateinoigakukun deleted the katei/improve-dev-script branch October 30, 2020 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants