diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-31 15:35:09 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-31 15:35:09 +0000 |
| commit | 235dae552a1ce3fe745c334f354038c0d5f45f48 (patch) | |
| tree | 64952e77a8f2a736e57319a504b931f4e90d48b4 /src/build_settings.cpp | |
| parent | a36c1ad406f5cef12300d7ce8ace385530f0e4f1 (diff) | |
Ignore `-use-separate-modules` when targeting wasm32/wasm64
Diffstat (limited to 'src/build_settings.cpp')
| -rw-r--r-- | src/build_settings.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp index b33fabfda..dd30d1306 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -921,6 +921,9 @@ void init_build_context(TargetMetrics *cross_target) { } bc->link_flags = make_string_c(link_flags); + + // Disallow on wasm + build_context.use_separate_modules = false; } else { gb_printf_err("Compiler Error: Unsupported architecture\n"); gb_exit(1); |