summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Landden <shawn@git.icu>2021-03-11 22:35:10 +0400
committerGitHub <noreply@github.com>2021-03-11 22:35:10 +0400
commitde21b1a43737fbcf47967a706dab4c60521dbbb1 (patch)
tree54777728ef74101005651e93671e6bda31b6b924
parent033630dfe00951d9511c8c2a3dc17f3c9328cf58 (diff)
parent8dacd28d888210753e9457eb31175d8e2a1c348e (diff)
downloaddistcc-git-de21b1a43737fbcf47967a706dab4c60521dbbb1.tar.gz
Merge pull request #413 from RX14/feature/lto
Skip distributing LTO cc invocations
-rw-r--r--src/arg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arg.c b/src/arg.c
index 6ca5130..73ff707 100644
--- a/src/arg.c
+++ b/src/arg.c
@@ -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.