[lld] [lld][WebAssembly] Add `--no-growable-memory` (PR #82890)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 24 19:18:20 PST 2024
================
@@ -473,6 +473,12 @@ void Writer::layoutMemory() {
WasmSym::heapEnd->setVA(memoryPtr);
}
+ if (config->maxMemory != 0 && config->noGrowableMemory) {
+ // Erroring out here is simpler than defining precedence rules.
+ error("--max-memory and --no-growable-memory are mutually exclusive");
+ }
----------------
sbc100 wrote:
Can you do this error checking in `readConfigs`?
There are a bunch of other error message there of the form `xxx is incompatible with yyy`. Can we also use that terminology for consistency?
https://github.com/llvm/llvm-project/pull/82890
More information about the llvm-commits
mailing list