From c8200093b239ad67afcba3cc07447343c5b0ae4f Mon Sep 17 00:00:00 2001 From: pentarctagon Date: Fri, 9 Feb 2018 01:14:26 -0600 Subject: [PATCH] Fixes LTO/PGO options not being used when ccache is enabled. When ccache is enabled, env["CC"] becomes - 'CC': '$CCACHE gcc' --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index d658ca6bbbc4..fbbd0ea31938 100755 --- a/SConstruct +++ b/SConstruct @@ -525,7 +525,7 @@ for env in [test_env, client_env, env]: rel_comp_flags = rel_comp_flags + env["arch"] # PGO and LTO setup - if env["CC"] == "gcc": + if "gcc" in env["TOOLS"]: if env["pgo_data"] == "generate": rel_comp_flags = rel_comp_flags + " -fprofile-generate=pgo_data/" rel_link_flags = "-fprofile-generate=pgo_data/"