]> Nishi Git Mirror - rbuild.git/commitdiff
macro
authorNishi <nishi@nishi.boats>
Sat, 12 Oct 2024 02:42:38 +0000 (02:42 +0000)
committerNishi <nishi@nishi.boats>
Sat, 12 Oct 2024 02:42:38 +0000 (02:42 +0000)
git-svn-id: file:///raid/svn-personal/rbuild/trunk@26 c68d3453-7f82-0740-9748-1d72386a946b

Server/task.c

index e872b7a3be53e5dc6644459ff35fb5bd721f847e..9d0b622d4fd45b9f3611f33b450e098fc7efc436 100644 (file)
@@ -170,7 +170,7 @@ char** rbs_translate_args(const char* section, const char* cmd, char** args, int
                                rbs_push(&r, args[i]);
                                rbs_push(&r, args[i + 1]);
                                i++;
-                       } else if(strcmp(args[i], "-c") == 0 || strcmp(args[i], "-fcommon") == 0 || strcmp(args[i], "-fno-common") == 0 || strcmp(args[i], "-fPIC") == 0 || strcmp(args[i], "-shared") == 0) {
+                       } else if(strcmp(args[i], "-c") == 0 || strcmp(args[i], "-fcommon") == 0 || strcmp(args[i], "-fno-common") == 0 || strcmp(args[i], "-fPIC") == 0 || strcmp(args[i], "-shared") == 0 || (strlen(args[i]) > 2 && args[i][0] == '-' && args[i][1] == 'D')) {
                                rbs_push(&r, args[i]);
                        } else if(args[i][0] != '-') {
                                /* file input */