diff --git a/compiler/main.v b/compiler/main.v index 2e79ebc0b9..d3226e74c0 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -453,6 +453,8 @@ mut args := '' // Output executable name // else { a << '-o $c.out_name' + // The C file we are compiling + a << '$TmpPath/$c.out_name_c' // } // Min macos version is mandatory I think? if c.os == MAC { @@ -464,8 +466,6 @@ mut args := '' if c.os == MAC { a << '-x objective-c' } - // The C file we are compiling - a << '$TmpPath/$c.out_name_c' // Without these libs compilation will fail on Linux if c.os == LINUX && c.build_mode != BUILD { a << '-lm -ldl -lpthread'