mirror of
https://github.com/TinyCC/tinycc.git
synced 2025-11-16 12:34:45 +00:00
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:
@@ -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 = '=';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user