@@ -116,19 +116,9 @@ else
116116endif
117117
118118
119- # AutoPxd currently strip const qualifier when generating `gdextension_interface.pxd`,
120- # hence -Wno-discarded-qualifiers
121- if host_platform.startswith(' windows' )
122- builtins_c_args = []
123- else
124- builtins_c_args = [' -Wno-discarded-qualifiers' , ' -Wno-incompatible-pointer-types-discards-qualifiers' ]
125- endif
126-
127-
128119shared_library (
129120 ' builtins' ,
130121 cbuiltins,
131- c_args : builtins_c_args,
132122 gnu_symbol_visibility : ' hidden' , # Used by both clang & gcc (see https://gcc.gnu.org/wiki/Visibility)
133123 dependencies : [dep_godot, dep_python, dep_pythonscript],
134124 install_rpath : builtins_rpath, # To find libpython
@@ -176,21 +166,9 @@ else
176166endif
177167
178168
179- # Cython's cdef inline methods are turned into static inline C functions that
180- # produced `defined but not used` errors, hence the `-Wno-unused-function`
181- # AutoPxd currently strip const qualifier when generating `gdextension_interface.pxd`,
182- # hence -Wno-discarded-qualifiers
183- if host_platform.startswith(' windows' )
184- classes_c_args = []
185- else
186- classes_c_args = [' -Wno-discarded-qualifiers' , ' -Wno-incompatible-pointer-types-discards-qualifiers' , ' -Wno-unused-function' ]
187- endif
188-
189-
190169shared_library (
191170 ' classes' ,
192171 cclasses,
193- c_args : classes_c_args,
194172 gnu_symbol_visibility : ' hidden' , # Used by both clang & gcc (see https://gcc.gnu.org/wiki/Visibility)
195173 dependencies : [dep_godot, dep_python, dep_pythonscript],
196174 install_rpath : classes_rpath, # To find libpython
@@ -249,21 +227,9 @@ else
249227endif
250228
251229
252- # Cython's cdef inline methods are turned into static inline C functions that
253- # produced `defined but not used` errors, hence the `-Wno-unused-function`
254- # AutoPxd currently strip const qualifier when generating `gdextension_interface.pxd`,
255- # hence -Wno-discarded-qualifiers
256- if host_platform.startswith(' windows' )
257- _lang_c_args = []
258- else
259- _lang_c_args = [' -Wno-discarded-qualifiers' , ' -Wno-incompatible-pointer-types-discards-qualifiers' , ' -Wno-unused-function' ]
260- endif
261-
262-
263230shared_library (
264231 ' _lang' ,
265232 c_lang,
266- c_args : _lang_c_args,
267233 gnu_symbol_visibility : ' hidden' , # Used by both clang & gcc (see https://gcc.gnu.org/wiki/Visibility)
268234 dependencies : [dep_godot, dep_python, dep_pythonscript],
269235 install_rpath : _lang_rpath, # To find libpython
0 commit comments