| ... | @@ -126,6 +126,7 @@ static int print_full_usage(const char *arg0, FILE *file, int return_code) { | ... | @@ -126,6 +126,7 @@ static int print_full_usage(const char *arg0, FILE *file, int return_code) { |
| 126 | " -l[lib] alias for --library\n" | 126 | " -l[lib] alias for --library\n" |
| 127 | " -rdynamic add all symbols to the dynamic symbol table\n" | 127 | " -rdynamic add all symbols to the dynamic symbol table\n" |
| 128 | " -rpath [path] add directory to the runtime library search path\n" | 128 | " -rpath [path] add directory to the runtime library search path\n" |
| | 129 | " --stack [size] (linux, windows, Wasm) override default stack size\n" |
| 129 | " --subsystem [subsystem] (windows) /SUBSYSTEM:<subsystem> to the linker\n" | 130 | " --subsystem [subsystem] (windows) /SUBSYSTEM:<subsystem> to the linker\n" |
| 130 | " -F[dir] (darwin) add search path for frameworks\n" | 131 | " -F[dir] (darwin) add search path for frameworks\n" |
| 131 | " -framework [name] (darwin) link against framework\n" | 132 | " -framework [name] (darwin) link against framework\n" |
| ... | @@ -1231,6 +1232,8 @@ static int main0(int argc, char **argv) { | ... | @@ -1231,6 +1232,8 @@ static int main0(int argc, char **argv) { |
| 1231 | ver_patch = atoi(argv[i]); | 1232 | ver_patch = atoi(argv[i]); |
| 1232 | } else if (strcmp(arg, "--test-cmd") == 0) { | 1233 | } else if (strcmp(arg, "--test-cmd") == 0) { |
| 1233 | test_exec_args.append(argv[i]); | 1234 | test_exec_args.append(argv[i]); |
| | 1235 | } else if (strcmp(arg, "--stack") == 0) { |
| | 1236 | stack_size_override = atoi(argv[i]); |
| 1234 | } else if (strcmp(arg, "--subsystem") == 0) { | 1237 | } else if (strcmp(arg, "--subsystem") == 0) { |
| 1235 | if (strcmp(argv[i], "console") == 0) { | 1238 | if (strcmp(argv[i], "console") == 0) { |
| 1236 | subsystem = TargetSubsystemConsole; | 1239 | subsystem = TargetSubsystemConsole; |