Skip to content

Commit 27d318e

Browse files
authored
v.builder: enable -fwrap for C compilation on OpenBSD too (#24585)
1 parent c6dbe32 commit 27d318e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎vlib/v/builder/cc.v‎

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

229229
// Add -fwrapv to handle UB overflows
230-
if ccoptions.cc in [.gcc, .clang, .tcc] && v.pref.os in [.macos, .linux, .windows] {
230+
if ccoptions.cc in [.gcc, .clang, .tcc] && v.pref.os in [.macos, .linux, .openbsd, .windows] {
231231
ccoptions.args << '-fwrapv'
232232
}
233233

0 commit comments

Comments
 (0)