Skip to content

Commit 150ff60

Browse files
authored
builder: remove passing -fno-strict-aliasing, for -prod to gcc/icc (#20368)
1 parent 2811fcb commit 150ff60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vlib/v/builder/cc.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
233233
debug_options << '-no-pie'
234234
}
235235
}
236-
optimization_options = ['-O3', '-fno-strict-aliasing', '-flto']
236+
optimization_options = ['-O3', '-flto']
237237
}
238238
if ccoptions.is_cc_icc {
239239
if ccoptions.debug_mode {
@@ -242,7 +242,7 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
242242
debug_options << '-no-pie'
243243
}
244244
}
245-
optimization_options = ['-Ofast', '-fno-strict-aliasing']
245+
optimization_options = ['-Ofast']
246246
}
247247
//
248248
if ccoptions.debug_mode {
@@ -836,7 +836,7 @@ fn (mut c Builder) cc_windows_cross() {
836836
mut debug_options := []string{}
837837
if c.pref.is_prod {
838838
if c.pref.ccompiler != 'msvc' {
839-
optimization_options = ['-O3', '-fno-strict-aliasing', '-flto']
839+
optimization_options = ['-O3', '-flto']
840840
}
841841
}
842842
if c.pref.is_debug {

0 commit comments

Comments
 (0)