Skip to content

Instantly share code, notes, and snippets.

@tiye
Created March 5, 2025 12:33
Show Gist options
  • Save tiye/7feb7fb73709cfc4009c9c62bf0cd2b9 to your computer and use it in GitHub Desktop.
Save tiye/7feb7fb73709cfc4009c9c62bf0cd2b9 to your computer and use it in GitHub Desktop.
Custom config toml
# Use different pre-set defaults than the global defaults.
#
# See `src/bootstrap/defaults` for more information.
# Note that this has no default value (x.py uses the defaults in `config.example.toml`).
profile = 'dist'
[llvm]
download-ci-llvm = false
[build]
optimized-compiler-builtins = true
target = ['wasm32-wasip1', 'aarch64-apple-darwin']
docs = false
tools = ['cargo']
configure-args = [
'--target=wasm32-wasip1',
'--disable-docs',
'--set',
'target.wasm32-wasip1.wasi-root={MY_KIT}/wasi-sdk-24.0-arm64-macos/share/wasi-sysroot',
'--tools=cargo',
]
[install]
[rust]
[target.aarch64-apple-darwin]
cc = '/usr/bin/clang'
[target.wasm32-wasip1]
cc = '{MY_KIT}/wasi-sdk-24.0-arm64-macos/bin/clang'
wasi-root = '{MY_KIT}/wasi-sdk-24.0-arm64-macos/share/wasi-sysroot'
[dist]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment