From 77aec6e6dcd06f19a8a9ac29786a1948366659c4 Mon Sep 17 00:00:00 2001 From: Alexander Neben Date: Wed, 12 Oct 2022 15:57:15 +0000 Subject: SERVER-69196 Fixed windows compiles --- SConstruct | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index dead2c01084..d6af4915d33 100644 --- a/SConstruct +++ b/SConstruct @@ -5576,7 +5576,8 @@ if env['SPLIT_DWARF'] == "auto": # is .dwo files use absolute paths in the debug info, so it's not relocatable. # We also found the running splitdwarf with dwarf5 failed to compile # so unless we set DWARF_VERSION = 4 we are going to turn off split dwarf - env['SPLIT_DWARF'] = (not link_model == "dynamic" and not env.TargetOSIs('darwin') + env['SPLIT_DWARF'] = (not link_model == "dynamic" and env.ToolchainIs('gcc', 'clang') + and not env.TargetOSIs('darwin') and env.CheckCCFLAGSSupported('-gsplit-dwarf') and env.get('DWARF_VERSION') == 4) -- cgit v1.2.1