diff options
author | Shawn Landden <shawn@git.icu> | 2021-03-11 22:35:10 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-11 22:35:10 +0400 |
commit | de21b1a43737fbcf47967a706dab4c60521dbbb1 (patch) | |
tree | 54777728ef74101005651e93671e6bda31b6b924 | |
parent | 033630dfe00951d9511c8c2a3dc17f3c9328cf58 (diff) | |
parent | 8dacd28d888210753e9457eb31175d8e2a1c348e (diff) | |
download | distcc-git-de21b1a43737fbcf47967a706dab4c60521dbbb1.tar.gz |
Merge pull request #413 from RX14/feature/lto
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. |