Native: use binary options machinery for memory model

Old compiler flag (-memory-model) will work too.
This commit is contained in:
Svyatoslav Scherbina
2021-08-18 18:05:46 +03:00
committed by Space
parent ee3663afa4
commit 9877a7271a
5 changed files with 6 additions and 5 deletions
@@ -240,7 +240,8 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
}
}
put(MEMORY_MODEL, memoryModel)
// Can be overwritten after [parseBinaryOptions] below.
put(BinaryOptions.memoryModel, memoryModel)
when {
arguments.generateWorkerTestRunner -> put(GENERATE_TEST_RUNNER, TestRunnerKind.WORKER)