We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4653ed3 commit 5cb31c2Copy full SHA for 5cb31c2
vlib/v/builder/cc.v
@@ -785,6 +785,14 @@ fn (mut v Builder) build_thirdparty_obj_file(path string, moduleflags []cflag.CF
785
if os.exists(opath) {
786
return
787
}
788
+ if os.exists(obj_path) {
789
+ // Some .o files are distributed with no source
790
+ // for example thirdparty\tcc\lib\openlibm.o
791
+ // the best we can do for them is just copy them,
792
+ // and hope that they work with any compiler...
793
+ os.cp(obj_path, opath)
794
+ return
795
+ }
796
println('$obj_path not found, building it in $opath ...')
797
cfile := '${path[..path.len - 2]}.c'
798
btarget := moduleflags.c_options_before_target()
0 commit comments