Skip to content

Commit

Permalink
builder: restore ability to use tcc, without fallback to cc on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Jan 13, 2024
1 parent ea6a5d8 commit 9560d53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/builder/cc.v
Expand Up @@ -297,7 +297,7 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
ccoptions.args << '-Wl,--no-entry'
}
if ccoptions.debug_mode && builder.current_os != 'windows' && v.pref.build_mode != .build_module {
if builder.current_os == 'macos' {
if builder.current_os == 'macos' && !ccoptions.is_cc_tcc {
ccoptions.linker_flags << '-Wl,-export_dynamic' // clang for mac needs export_dynamic instead of -rdynamic
} else {
ccoptions.linker_flags << '-rdynamic' // needed for nicer symbolic backtraces
Expand Down

0 comments on commit 9560d53

Please sign in to comment.