Skip to content

Commit b36c55b

Browse files
authored
Disable from_exception on cygwin. (#219)
Cygwin doesn't have RTDL_NEXT, which causes a compile error with the non-windows implementation. I'm not sure which implementation would be better to use, so just disable it for now.
1 parent 6ef20c3 commit b36c55b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ stacktrace_check(BOOST_STACKTRACE_HAS_WINDBG has_windbg.cpp "" "dbgeng;ole32" ""
7272
stacktrace_check(BOOST_STACKTRACE_HAS_WINDBG_CACHED has_windbg_cached.cpp "${CMAKE_CURRENT_SOURCE_DIR}/../config/include" "dbgeng;ole32" "")
7373

7474
set(_default_from_exception ON)
75-
if (NOT CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64|amd64|i386|i686|x86")
75+
if (NOT CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64|amd64|i386|i686|x86" OR CMAKE_CXX_PLATFORM_ID MATCHES "Cygwin")
7676
set(_default_from_exception OFF)
7777
endif()
7878

build/Jamfile.v2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ rule build-stacktrace-from-exception ( props * )
250250
}
251251

252252
local arch = [ property.select <architecture> : $(props) ] ;
253-
if $(arch) && ( $(arch:G=) != x86 )
253+
if ( $(arch) && ( $(arch:G=) != x86 ) ) || ( <target-os>cygwin in $(props) )
254254
{
255255
configure.log-library-search-result "boost.stacktrace.from_exception" : "no" ;
256256
return <build>no ;

0 commit comments

Comments
 (0)