Skip to content

Commit f31cf6a

Browse files
committed
builder: allow for ./v -freestanding -cc riscv64-elf-gcc -d no_main -no-builtin -no-preludes -showcc -keepc x.v
1 parent 8b82396 commit f31cf6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vlib/v/builder/cc.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
332332

333333
// macOS code can include objective C TODO remove once objective C is replaced with C
334334
if v.pref.os == .macos || v.pref.os == .ios {
335-
if !ccoptions.is_cc_tcc && !user_darwin_ppc {
335+
if !ccoptions.is_cc_tcc && !user_darwin_ppc && !v.pref.is_bare {
336336
ccoptions.source_args << '-x objective-c'
337337
}
338338
}

0 commit comments

Comments
 (0)