diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-08 14:48:31 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-08 14:48:31 +0200 |
commit | 687e7cac244cd706c7f959f0486ab405d6942cdd (patch) | |
tree | e3cb8560ff61e091273addc92c9435a86ec6197d /build2/operation.cxx | |
parent | 928f59d6722c9d1948ce142f2d7a79027c5430a5 (diff) |
Work around VC static initialization order issue
Diffstat (limited to 'build2/operation.cxx')
-rw-r--r-- | build2/operation.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build2/operation.cxx b/build2/operation.cxx index f262321..b242cb3 100644 --- a/build2/operation.cxx +++ b/build2/operation.cxx @@ -537,6 +537,10 @@ namespace build2 #ifndef _MSC_VER constexpr #else + // VC doesn't "see" this can be const-initialized so we have to hack around + // to ensure correct initialization order. + // + #pragma init_seg(lib) const #endif operation_info op_update { |