add '-masm=intel' when building using GCC

This commit is contained in:
Struma 2020-12-31 14:26:12 -05:00 committed by Roza
parent d65cecf4ac
commit f7449ab7e6
2 changed files with 2 additions and 1 deletions

View file

@ -24,7 +24,7 @@ VALUE stringMap2hash(mkxp_net::StringMap &map) {
mkxp_net::StringMap hash2StringMap(VALUE hash) {
mkxp_net::StringMap ret;
Check_Type(hash, RUBY_T_HASH);
Check_Type(hash, T_HASH);
VALUE keys = rb_funcall(hash, rb_intern("keys"), 0);
for (int i = 0; i < RARRAY_LEN(keys); i++) {

View file

@ -82,6 +82,7 @@ endif
global_args += ['-Wno-non-virtual-dtor', '-Wno-reorder', '-Wno-uninitialized', '-Wno-unknown-pragmas', '-Wno-unknown-warning-option', '-Wno-deprecated-register']
if compilers['cpp'].get_id() == 'clang'
global_args += ['-Wno-undefined-var-template', '-Wno-delete-non-abstract-non-virtual-dtor']
global_args += '-masm=intel'
endif
if host_system == 'windows'
global_args += '-Wno-unknown-attributes'