Skip to content

Commit

Permalink
builder: allow for `./v -freestanding -cc riscv64-elf-gcc -d no_main …
Browse files Browse the repository at this point in the history
…-no-builtin -no-preludes -showcc -keepc x.v`
  • Loading branch information
spytheman committed Jan 22, 2024
1 parent 8b82396 commit f31cf6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/builder/cc.v
Expand Up @@ -332,7 +332,7 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {

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

0 comments on commit f31cf6a

Please sign in to comment.