From cbd715bcc2b111875ea1a222401410dec27acf36 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Thu, 9 May 2013 08:37:14 +0300 Subject: [PATCH] Support -@file.opt Some compilers (e.g. diab) use -@ notation for options file --- ccache.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ccache.c b/ccache.c index ada3edfad..fd3d41d30 100644 --- a/ccache.c +++ b/ccache.c @@ -1686,10 +1686,13 @@ cc_process_args(struct args *args, struct args **preprocessor_args, } /* Handle "@file" argument. */ - if (str_startswith(argv[i], "@")) { + if (str_startswith(argv[i], "@") || str_startswith(argv[i], "-@")) { char *argpath = argv[i] + 1; struct args *file_args; + if (argpath[-1] == '-') { + ++argpath; + } file_args = args_init_from_gcc_atfile(argpath); if (!file_args) { cc_log("Couldn't read arg file %s", argpath); -- 2.47.2