mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-27 00:02:19 -08:00
radlink: make command-line /INFERASANLIBS:NO disable ASAN library inference without allowing directive to re-enable it
This commit is contained in:
1 parent
c762d1cd71
commit
e162b800d9
3 files changed
+74
-6
No files matched your search
@@ -913,14 +913,14 @@ lnk_parse_msvc_linker_directive(Arena *arena, LNK_Obj *obj, LNK_DirectiveInfo *d
|
||||
String8List arg_list = lnk_arg_list_parse_windows_rules(scratch.arena, to_parse);
|
||||
LNK_CmdLine cmd_line = lnk_cmd_line_parse_windows_rules(scratch.arena, arg_list);
|
||||
|
||||
for (LNK_CmdOption *opt = cmd_line.first_option; opt != 0; opt = opt->next) {
|
||||
for EachNode(opt, LNK_CmdOption, cmd_line.first_option) {
|
||||
LNK_CmdSwitch *cmd_switch = lnk_cmd_switch_from_string(opt->string);
|
||||
|
||||
if (cmd_switch == 0) {
|
||||
lnk_error_obj(LNK_Warning_UnknownDirective, obj, "unknown directive \"%S\"", opt->string);
|
||||
continue;
|
||||
}
|
||||
if (!cmd_switch->is_legal_directive) {
|
||||
if (cmd_switch->is_legal_directive == 0) {
|
||||
lnk_error_obj(LNK_Warning_IllegalDirective, obj, "illegal directive \"%S\"", opt->string);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user