From f352dbb8308ddeab5fa47a5d18883f854192ec53 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 22 May 2020 11:34:19 +0200 Subject: Make template definition available in all translation units where used We were trying to be clever but GCC 10's IPA-SRA optimization didn't like it. --- libbuild2/cc/common.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbuild2/cc/common.hxx') diff --git a/libbuild2/cc/common.hxx b/libbuild2/cc/common.hxx index 422b761..b47f225 100644 --- a/libbuild2/cc/common.hxx +++ b/libbuild2/cc/common.hxx @@ -1,4 +1,4 @@ -// file : build2/cc/common.hxx -*- C++ -*- +// file : libbuild2/cc/common.hxx -*- C++ -*- // license : MIT; see accompanying LICENSE file #ifndef LIBBUILD2_CC_COMMON_HXX @@ -382,4 +382,6 @@ namespace build2 } } +#include + #endif // LIBBUILD2_CC_COMMON_HXX -- cgit v1.1