File handle-extrafiles-on-assembler.patch of Package icecream

--- icecc-0.9.7/client/arg.cpp
+++ icecc-0.9.7/client/arg.cpp
@@ -186,6 +186,21 @@
 		    if (!*pos)
 		        break;
 		}
+                /* Some weird build systems pass directly additional assembler files.
+                 * Example: -Wa,src/code16gcc.s
+                 * Need to handle it locally then. Search if the first part after -Wa, does not start with -
+                 */
+                pos = a+3;
+                while (*pos) {
+                    if (*pos == ',' || *pos == ' ') {
+			pos++;
+                        continue;
+		    }
+                    if (*pos == '-')
+                        break;
+                    local = true;
+                    break;
+                }
                 if (local) {
                     always_local = true;
                     args.append(a, Arg_Local);
openSUSE Build Service is sponsored by