mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-15 17:10:51 -10:00
[mkbundle] Small fixes under Windows
* Quote source files before passing to cl.exe * Use Windows subsystem instead of console but still use main() entry point and not WinMain()
This commit is contained in:
1 parent
04636f9981
commit
40017f9aa0
2 files changed
+6
-5
No files matched your search
Vendored
+1
-1
Submodule external/binary-reference-assemblies updated: fcb3074202...f4f5f2f4cd.
@@ -549,14 +549,15 @@ void mono_register_config_for_assembly (const char* assembly_name, cons
|
||||
compilerArgs.Add(String.Format ("/I {0}", quote (include)));
|
||||
|
||||
if (!nomain || custom_main != null) {
|
||||
compilerArgs.Add(temp_c);
|
||||
compilerArgs.Add(temp_o);
|
||||
compilerArgs.Add(quote(temp_c));
|
||||
compilerArgs.Add(quote(temp_o));
|
||||
if (custom_main != null)
|
||||
compilerArgs.Add(quote(custom_main));
|
||||
compilerArgs.Add(monoLib);
|
||||
compilerArgs.Add(quote(monoLib));
|
||||
compilerArgs.Add("/link");
|
||||
compilerArgs.Add("/NODEFAULTLIB");
|
||||
compilerArgs.Add("/SUBSYSTEM:CONSOLE");
|
||||
compilerArgs.Add("/SUBSYSTEM:windows");
|
||||
compilerArgs.Add("/ENTRY:mainCRTStartup");
|
||||
compilerArgs.AddRange(linkLibraries);
|
||||
compilerArgs.Add("/out:"+ output);
|
||||
|
||||
|
||||
Reference in new issue
Block a user