diff options
author | Stephanie Wilde-Hobbs <git@stephanie.is> | 2021-02-07 23:53:46 +0000 |
---|---|---|
committer | Stephanie Wilde-Hobbs <git@stephanie.is> | 2021-02-07 23:54:50 +0000 |
commit | 8dacd28d888210753e9457eb31175d8e2a1c348e (patch) | |
tree | 54777728ef74101005651e93671e6bda31b6b924 | |
parent | 033630dfe00951d9511c8c2a3dc17f3c9328cf58 (diff) | |
download | distcc-git-8dacd28d888210753e9457eb31175d8e2a1c348e.tar.gz |
Skip distributing LTO cc invocations
-rw-r--r-- | src/arg.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -189,6 +189,9 @@ int dcc_scan_args(char *argv[], char **input_file, char **output_file, rs_trace("-mtune=native optimizes for local machine; " "must be local"); return EXIT_DISTCC_FAILED; + } else if (!strcmp(a, "-flto")) { + rs_trace("LTO cc invocations are not worth distributing"); + return EXIT_DISTCC_FAILED; } else if (str_startswith("-Wa,", a)) { /* Look for assembler options that would produce output * files and must be local. |