Skip to content

Commit 7b03e68

Browse files
[[ Build ]] Only add '-Wno-error=maybe-uninitialized' on 64-bit Linux
1 parent 0e6ee8d commit 7b03e68

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

config/linux.gypi

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,22 @@
144144

145145
'Release':
146146
{
147+
'conditions':
148+
[
149+
[
150+
'target_arch != "x86"',
151+
{
152+
'cflags':
153+
[
154+
'-Wno-error=maybe-uninitialized', #warning added only with optimisation ON
155+
],
156+
},
157+
],
158+
],
147159
'cflags':
148160
[
149161
'-O3',
150162
'-g3',
151-
'-Wno-error=maybe-uninitialized', #warning added only with optimisation ON
152163
],
153164

154165
'defines':

0 commit comments

Comments
 (0)