mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
only enable arm and wasm when the feature is enabled
This commit is contained in:
parent
62b5f165f6
commit
98d451b240
1 changed files with 6 additions and 2 deletions
|
@ -420,12 +420,16 @@ fn gen(
|
|||
|
||||
"x86-64"
|
||||
}
|
||||
Architecture::Arm(_) => {
|
||||
Architecture::Arm(_) if cfg!(feature = "target-arm") => {
|
||||
// NOTE: why not enable arm and wasm by default?
|
||||
//
|
||||
// We had some trouble getting them to link properly. This may be resolved in the
|
||||
// future, or maybe it was just some weird configuration on one machine.
|
||||
Target::initialize_arm(&InitializationConfig::default());
|
||||
|
||||
"arm"
|
||||
}
|
||||
Architecture::Wasm32 => {
|
||||
Architecture::Wasm32 if cfg!(feature = "target-webassembly") => {
|
||||
Target::initialize_webassembly(&InitializationConfig::default());
|
||||
|
||||
"wasm32"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue