From 41cc8685faad55706971682f00f17e107ba286ec Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Thu, 11 Sep 2025 18:41:06 +0200 Subject: [PATCH] build: Do not link stacktrace on ClangCL --- build-support/custom-modules/ns3-compiler-workarounds.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-support/custom-modules/ns3-compiler-workarounds.cmake b/build-support/custom-modules/ns3-compiler-workarounds.cmake index 6624b787d..45d1aaca7 100644 --- a/build-support/custom-modules/ns3-compiler-workarounds.cmake +++ b/build-support/custom-modules/ns3-compiler-workarounds.cmake @@ -74,7 +74,7 @@ if(STACKTRACE_LIBRARY_ENABLED) else() set(stacktrace_flags -lstdc++exp CACHE INTERNAL "") endif() - elseif(CLANG) + elseif(CLANG AND (NOT ("${CMAKE_CXX_SIMULATE_ID}" MATCHES "MSVC"))) set(stacktrace_flags -lstdc++_libbacktrace CACHE INTERNAL "") else() # Most likely MSVC, which does not need custom flags for this