f12ae432305a0cdef1bf46ce1617637eaaf72cbc — Michael Forney 14 days ago d9d91de
driver: Pass -std=* through to the preprocessor

This will prevent the preprocessor from defining several unreserved
identifiers when built with an ISO C language standard, which may conflict
with identifiers used by the program being built.
1 files changed, 3 insertions(+), 1 deletions(-)

M driver.c
M driver.c => driver.c +3 -1
@@ 431,7 431,9 @@ main(int argc, char *argv[])
 		} else if (strcmp(arg, "-pipe") == 0) {
 			/* ignore */
 		} else if (strncmp(arg, "-std=", 5) == 0) {
-			/* ignore */
+			/* pass through to the preprocessor, it may
+			 * affect its default definitions */
+			arrayaddptr(&stages[PREPROCESS].cmd, arg);
 		} else if (strcmp(arg, "-pedantic") == 0) {
 			/* ignore */
 		} else {