File tree Expand file tree Collapse file tree 2 files changed +2
-21
lines changed
include/boost/http_proto/server Expand file tree Collapse file tree 2 files changed +2
-21
lines changed Original file line number Diff line number Diff line change @@ -131,17 +131,6 @@ struct router_options
131131 unsigned int v_ = 0 ;
132132};
133133
134- // -----------------------------------------------
135-
136- #ifdef __APPLE__
137- namespace detail {
138- // The Apple linker has a bug whereby it can erroneously deduplicate functions
139- // with identical codegen even though the unwind tables are different. This is
140- // required as part of a workaround to that issue.
141- extern volatile int apple_linker_bug_workaround_;
142- } // detail
143- #endif // APPLE
144-
145134// -----------------------------------------------
146135
147136// namespace detail {
@@ -1025,7 +1014,8 @@ class basic_router : public /*detail::*/any_router
10251014 // deduplicate functions with identical codegen even though the
10261015 // unwind tables are different. Here we force different codegen
10271016 // depending on the type of E.
1028- if (detail::apple_linker_bug_workaround_)
1017+ static volatile int apple_linker_bug_workaround_ = 0 ;
1018+ if (apple_linker_bug_workaround_)
10291019 throw ex;
10301020#endif // APPLE
10311021 set_resume u (p_);
Original file line number Diff line number Diff line change 2222namespace boost {
2323namespace http_proto {
2424
25- #ifdef __APPLE__
26- namespace detail {
27- // The Apple linker has a bug whereby it can erroneously deduplicate functions
28- // with identical codegen even though the unwind tables are different. This is
29- // required as part of a workaround to that issue.
30- BOOST_SYMBOL_VISIBLE volatile int apple_linker_bug_workaround_ = 0 ;
31- } // detail
32- #endif // APPLE
33-
3425// namespace detail {
3526
3627// VFALCO Temporarily here until Boost.URL merges the fix
You can’t perform that action at this time.
0 commit comments