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.
./v -freestanding -cc riscv64-elf-gcc -d no_main -no-builtin -no-preludes -showcc -keepc x.v
1 parent 8b82396 commit f31cf6aCopy full SHA for f31cf6a
vlib/v/builder/cc.v
@@ -332,7 +332,7 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
332
333
// macOS code can include objective C TODO remove once objective C is replaced with C
334
if v.pref.os == .macos || v.pref.os == .ios {
335
- if !ccoptions.is_cc_tcc && !user_darwin_ppc {
+ if !ccoptions.is_cc_tcc && !user_darwin_ppc && !v.pref.is_bare {
336
ccoptions.source_args << '-x objective-c'
337
}
338
0 commit comments