Changed to --mm:orc
h3rald h3rald@h3rald.com
Wed, 03 Jun 2026 14:27:31 +0200
3 files changed,
5 insertions(+),
5 deletions(-)
M
.github/workflows/add-artifacts-to-current-release.yml
→
.github/workflows/add-artifacts-to-current-release.yml
@@ -71,18 +71,18 @@ uses: iffy/install-nim@v4.5.0
# Build for Linux - name: Build (Linux) - run: nimble build -v -y -d:release --gcc.exe:musl-gcc --mm:refc --gcc.linkerexe:musl-gcc -d:ssl --opt:size min + run: nimble build -v -y -d:release --gcc.exe:musl-gcc --mm:orc --deepCopy:on --gcc.linkerexe:musl-gcc -d:ssl --opt:size min if: matrix.os == 'ubuntu-latest' # Build for macOS - name: Build (macOS) - run: nimble build -v -y -d:release -d:ssl --opt:size --mm:refc min + run: nimble build -v -y -d:release -d:ssl --opt:size --mm:orc --deepCopy:on min if: matrix.os == 'macos-13' # Build for Windows - name: Build (Windows) shell: msys2 {0} - run: nimble build -v -y -d:release --mm:refc --opt:size -d:ssl --gcc.exe:x86_64-w64-mingw32-gcc --gcc.linkerexe:x86_64-w64-mingw32-gcc min + run: nimble build -v -y -d:release --mm:orc --deepCopy:on --opt:size -d:ssl --gcc.exe:x86_64-w64-mingw32-gcc --gcc.linkerexe:x86_64-w64-mingw32-gcc min if: matrix.os == 'windows-2019' # UPX compress (Linux)
M
min.nim
→
min.nim
@@ -86,7 +86,7 @@ result = result.concat(minFile(f, "compile", main = false))
result.add "### $# (main)" % i.filename result = result.concat(i.compileFile(main)) writeFile(nimFile, result.join("\n")) - let cmd = "nim c --threadAnalysis:off --mm:refc $#$#" % [NIMOPTIONS&" ", nimFile] + let cmd = "nim c --threadAnalysis:off --mm:orc --deepCopy:on $#$#" % [NIMOPTIONS&" ", nimFile] logging.notice("Calling Nim compiler:") logging.notice(cmd) discard execShellCmd(cmd)
M
site/contents/get-started.md
→
site/contents/get-started.md
@@ -133,7 +133,7 @@ If you want to pass any options to the Nim compiler (like `-d:release` for example) you can do so by using the `-n` (or `--passN`) option:
> %min-terminal% > -> [$](class:prompt) min compile myfile.min -n:"-d:release --threadAnalysis:off --mm:refc" +> [$](class:prompt) min compile myfile.min -n:"-d:release --threadAnalysis:off --mm:orc --deepCopy:on" Additionally, you can also use `-m:<path>` (or `--module-path`) to specify one path containing [.min](class:ext) files which will be compiled as well (but not executed) along with the specified file. Whenever a {#link-global-operator||load#} or a {#link-global-operator||require#} symbol is used to load/require an external [.min](class:ext) file, it will attempt to retrieve its contents from the pre-loaded files first before searching the filesystem.