Skip to content

Commit 35a4713

Browse files
committed
rework
1 parent a9cbb85 commit 35a4713

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

include/boost/http_proto/server/basic_router.hpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff 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_);

src/server/basic_router.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,6 @@
2222
namespace boost {
2323
namespace 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

0 commit comments

Comments
 (0)