From: Orgad Shaneh Date: Thu, 9 May 2013 05:37:14 +0000 (+0300) Subject: Support -@file.opt X-Git-Tag: v3.2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbd715bcc2b111875ea1a222401410dec27acf36;p=thirdparty%2Fccache.git Support -@file.opt Some compilers (e.g. diab) use -@ notation for options file --- 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);