roc/.cargo/config.toml

60 lines
2.8 KiB
TOML
Raw Permalink Normal View History

[alias]
test-gen-llvm = "test -p test_gen"
test-gen-dev = "test -p roc_gen_dev -p test_gen --no-default-features --features gen-dev"
test-gen-wasm = "test -p roc_gen_wasm -p test_gen --no-default-features --features gen-wasm"
2022-07-10 13:14:34 +03:00
test-gen-llvm-wasm = "test -p roc_gen_wasm -p test_gen --no-default-features --features gen-llvm-wasm"
2023-05-14 16:19:15 +03:00
nextest-gen-llvm = "nextest run -p test_gen"
nextest-gen-dev = "nextest run -p roc_gen_dev -p test_gen --no-default-features --features gen-dev"
nextest-gen-wasm = "nextest run -p roc_gen_wasm -p test_gen --no-default-features --features gen-wasm"
nextest-gen-llvm-wasm = "nextest run -p roc_gen_wasm -p test_gen --no-default-features --features gen-llvm-wasm"
2023-04-02 17:11:31 +03:00
uitest = "test -p uitest"
[target.wasm32-unknown-unknown]
2022-03-16 15:51:24 +03:00
# Rust compiler flags for minimum-sized .wasm binary in the web REPL
2023-03-12 13:07:59 +03:00
# opt-level=s Optimizations should focus more on size than speed
# lto=fat Spend extra effort on link-time optimization across crates
# embed-bitcode=yes Turn back on lto since it is no longer default
rustflags = ["-Copt-level=s", "-Clto=fat", "-Cembed-bitcode=yes"]
2022-05-05 19:08:34 +03:00
# TODO: there is probably a more proper solution to this.
# We are pulling in roc_alloc and friends due to using roc_std.
# They ared defined in roc_glue, but windows linking breaks before we get there.
[target.'cfg(target_os = "windows")']
rustflags = ["-Clink-args=/FORCE:UNRESOLVED"]
2022-05-05 19:08:34 +03:00
[env]
# Gives us the path of the workspace root for use in cargo tests without having
# to compute it per-package.
# https://github.com/rust-lang/cargo/issues/3946#issuecomment-973132993
ROC_WORKSPACE_DIR = { value = "", relative = true }
2024-08-09 18:15:03 +03:00
# Debug flags. Explanations for these are in compiler/debug_flags/src/lib.rs.
2022-05-05 19:08:34 +03:00
# Set = "1" to turn a debug flag on.
2023-04-20 14:03:29 +03:00
ROC_PRETTY_PRINT_ALIAS_CONTENTS = "0"
ROC_PRINT_UNIFICATIONS = "0"
ROC_PRINT_UNDERIVABLE = "0"
ROC_TRACE_COMPACTION = "0"
ROC_PRINT_UNIFICATIONS_DERIVED = "0"
ROC_PRINT_MISMATCHES = "0"
2024-02-28 15:50:48 +03:00
ROC_PRINT_FIXPOINT_FIXING = "0"
2023-04-20 14:03:29 +03:00
ROC_VERIFY_RIGID_LET_GENERALIZED = "0"
2024-02-28 15:50:48 +03:00
ROC_VERIFY_OCCURS_ONE_RECURSION = "0"
2023-04-20 14:03:29 +03:00
ROC_CHECK_MONO_IR = "0"
ROC_PRINT_IR_AFTER_SPECIALIZATION = "0"
ROC_PRINT_IR_AFTER_RESET_REUSE = "0"
ROC_PRINT_IR_AFTER_REFCOUNT = "0"
2024-02-28 15:50:48 +03:00
ROC_PRINT_IR_AFTER_TRMC = "0"
ROC_PRINT_IR_AFTER_DROP_SPECIALIZATION = "0"
2023-04-20 14:03:29 +03:00
ROC_DEBUG_ALIAS_ANALYSIS = "0"
2024-02-28 15:50:48 +03:00
ROC_PRINT_RUNTIME_ERROR_GEN = "0"
2024-08-09 18:15:03 +03:00
ROC_NO_UNBOUND_LAYOUT = "0"
2023-04-20 14:03:29 +03:00
ROC_PRINT_LLVM_FN_VERIFICATION = "0"
2024-02-28 15:50:48 +03:00
ROC_WRITE_FINAL_WASM = "0"
ROC_LOG_WASM_INTERP = "0"
2023-04-20 14:03:29 +03:00
ROC_PRINT_LOAD_LOG = "0"
2024-02-28 15:50:48 +03:00
ROC_SKIP_SUBS_CACHE = "0"
ROC_PRINT_BUILD_COMMANDS = "0"
ROC_PRINT_BUILD_COMMANDS_WITH_ENV_VARS = "0"