mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 11:20:08 +00:00
Fix procedure casting; SUBSYSTEM to CONSOLE in linker
This commit is contained in:
@@ -1880,6 +1880,10 @@ bool check_is_castable_to(Checker *c, Operand *operand, Type *y) {
|
||||
if (is_type_proc(xb) && is_type_rawptr(yb)) {
|
||||
return true;
|
||||
}
|
||||
// rawptr -> proc
|
||||
if (is_type_rawptr(xb) && is_type_proc(yb)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
+1
-1
@@ -232,7 +232,7 @@ int main(int argc, char **argv) {
|
||||
exit_code = win32_exec_command_line_app("msvc-link", true,
|
||||
"link %.*s.obj -OUT:%.*s.%s %s "
|
||||
"/defaultlib:libcmt "
|
||||
"/nologo /incremental:no /opt:ref /subsystem:WINDOWS "
|
||||
"/nologo /incremental:no /opt:ref /subsystem:CONSOLE "
|
||||
" %.*s "
|
||||
" %s "
|
||||
"",
|
||||
|
||||
Reference in New Issue
Block a user