Skip to content

Commit

Permalink
For non-spur linux builds, fix description of "-mmap" option's defaul…
Browse files Browse the repository at this point in the history
…t value. We cannot reuse the define of DefaultMmapSize directly since option() is not prepared for that printf-like argument signature. Similar to the default "UTF-8" for "-textenc" option. Hardcode 1024 for now. See define further up in sqUnixMain.c.
  • Loading branch information
marceltaeumel committed Nov 20, 2023
1 parent f98519f commit b2c0161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/unix/vm/sqUnixMain.c
Original file line number Diff line number Diff line change
Expand Up @@ -1850,7 +1850,7 @@ vm_printUsage(void)
option(" "VMOPTION("help")" print this help message, then exit\n");
option(" "VMOPTION("memory")" <size>[kmg] use fixed heap size (added to image size)\n");
#if !SPURVM
option(" "VMOPTION("mmap")" <size>[kmg] limit dynamic heap size (default: %dm)\n", DefaultMmapSize);
option(" "VMOPTION("mmap")" <size>[kmg] limit dynamic heap size (default: 1024m)\n");
#endif
option(" "VMOPTION("timephases")" print start load and run times\n");
#if STACKVM || NewspeakVM
Expand Down

0 comments on commit b2c0161

Please sign in to comment.