aboutsummaryrefslogtreecommitdiff
path: root/build2/scope.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/scope.cxx')
-rw-r--r--build2/scope.cxx4
1 files changed, 3 insertions, 1 deletions
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<reference_wrapper<const target_type>, bool> scope::
derive_target_type (const string& name, const target_type& base)