Skip to content

Commit cce5996

Browse files
authored
Merge pull request ceph#52427 from petrutlucian94/fix_win32_boost
win32_deps_build: skip patching removed boost files Reviewed-by: Ilya Dryomov <[email protected]> Reviewed-by: Adam Emerson <[email protected]>
2 parents 3281eb8 + 80d2d01 commit cce5996

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/test/common/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,16 @@ target_link_libraries(unittest_dns_resolve global)
316316
add_ceph_unittest(unittest_dns_resolve)
317317
endif()
318318

319+
# We're getting an ICE when trying to compile this test using mingw-gcc and
320+
# recent Boost versions. Note that mingw-llvm works fine.
321+
if (NOT WIN32 OR (NOT(CMAKE_CXX_COMPILER_ID STREQUAL GNU)))
319322
add_executable(unittest_back_trace
320323
test_back_trace.cc)
321324
set_source_files_properties(test_back_trace.cc PROPERTIES
322325
COMPILE_FLAGS -fno-inline)
323326
add_ceph_unittest(unittest_back_trace)
324327
target_link_libraries(unittest_back_trace ceph-common)
328+
endif()
325329

326330
add_executable(unittest_hostname
327331
test_hostname.cc)

win32_deps_build.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,7 @@ echo "using gcc : mingw32 : ${MINGW_CXX} ;" > user-config.jam
157157
# Workaround for https://github.com/boostorg/thread/issues/156
158158
# Older versions of mingw provided a different pthread lib.
159159
sed -i 's/lib$(libname)GC2.a/lib$(libname).a/g' ./libs/thread/build/Jamfile.v2
160-
sed -i 's/mthreads/pthreads/g' ./tools/build/src/tools/gcc.py
161160
sed -i 's/mthreads/pthreads/g' ./tools/build/src/tools/gcc.jam
162-
163-
sed -i 's/pthreads/mthreads/g' ./tools/build/src/tools/gcc.py
164161
sed -i 's/pthreads/mthreads/g' ./tools/build/src/tools/gcc.jam
165162

166163
export PTW32_INCLUDE=${PTW32Include}

0 commit comments

Comments
 (0)