From ec7b7e37ce97d25adc209befb2c12cf16eb06ef1 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 28 Jun 2016 13:00:14 +0300 Subject: Port to MSVC --- build2/scope.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build2/scope.cxx') diff --git a/build2/scope.cxx b/build2/scope.cxx index c9a8ab9..0ef8de6 100644 --- a/build2/scope.cxx +++ b/build2/scope.cxx @@ -540,7 +540,9 @@ namespace build2 return r; } - constexpr const char derived_tt_ext_var[] = "extension"; + // VC 19 rejects constexpr. + // + extern const char derived_tt_ext_var[] = "extension"; pair, bool> scope:: derive_target_type (const string& name, const target_type& base) -- cgit v1.1