Fix libtcc_test_mt with lib64

we need to pass NATIVE_DEFINES, and we need to actually parse
and pass them into the state.
This commit is contained in:
Michael Matz
2019-12-11 17:57:43 +01:00
parent b3893baa45
commit 8b23662d53
2 changed files with 9 additions and 1 deletions

View File

@@ -102,6 +102,14 @@ void parse_args(TCCState *s)
tcc_add_include_path(s, a+2);
else if (a[1] == 'L')
tcc_add_library_path(s, a+2);
else if (a[1] == 'D') {
char *eq = strchr(a+2, '=');
if (eq) {
*eq = 0;
tcc_define_symbol(s, a+2, eq+1);
*eq = '=';
}
}
}
}
}