Selaa lähdekoodia

gcc: Fix handling of `cflags' in test instructions.

* gcc-plugin/tests/run-test.in (compile/match): Suitably parse `cflags'.
Ludovic Courtès 13 vuotta sitten
vanhempi
commit
d7645e758d
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      gcc-plugin/tests/run-test.in

+ 1 - 2
gcc-plugin/tests/run-test.in

@@ -323,8 +323,7 @@ otherwise."
                             (car instructions)))
                             (car instructions)))
                        ((cflags)
                        ((cflags)
                         `(,@cflags
                         `(,@cflags
-                          ,@(or (and=> (assq-ref options 'cflags) cadr)
-                                '())
+                          ,@(or (assq-ref options 'cflags) '())
                           ,@(if (memq goal '(link run))
                           ,@(if (memq goal '(link run))
                                 `("-o" ,exe)
                                 `("-o" ,exe)
                                 '("-c"))))
                                 '("-c"))))