From: Andy Gocke Date: Thu, 10 Aug 2023 05:46:00 +0000 (-0700) Subject: Remove --flat from default dsymutil options (#89358) X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~394 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=44e63d4a1e82259315a1cd7088e1a150ad0a194a;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Remove --flat from default dsymutil options (#89358) --flat is a diagnostic-only option and not fully supported. It can still be specified if necessary through the DsymUtilOptions property and NativeSymbolExt property, but it will no longer be the default. --- diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets index d8cd01c..dc14702 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets @@ -101,12 +101,26 @@ <_symbolExt Condition="'$(OS)' == 'Windows_NT'">$(NativeSymbolExt) <_symbolExt Condition="'$(OS)' != 'Windows_NT'">$(NativeBinaryExt)$(NativeSymbolExt) - + <_symbolSourcePath>$(NativeOutputPath)$(TargetName)$(_symbolExt) + <_symbolTargetPath>$(PublishDir)\$(TargetName)$(_symbolExt) + + <_symbolIsFile Condition="'$(_symbolExt)' == '.dsym'">false + <_symbolIsFile Condition="'$(_symbolIsFile)' == ''">true + - - - + + <_symbolRecursivePath Include="$(NativeOutputPath)$(TargetName)$(_symbolExt)/**/*" /> + + + + + + + + + diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets index 8ce9043..471c024 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets @@ -19,7 +19,6 @@ The .NET Foundation licenses this file to you under the MIT license. clang $(CppCompilerAndLinker) ar - --flat <_SymbolPrefix Condition="'$(_IsApplePlatform)' == 'true'">_ lld lld diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets index 226282f..a4f34ef 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets @@ -71,9 +71,9 @@ The .NET Foundation licenses this file to you under the MIT license. .lib .a - .dwarf - .pdb - .dbg + .dsym + .pdb + .dbg .def .exports diff --git a/src/coreclr/tools/aot/crossgen2/crossgen2.csproj b/src/coreclr/tools/aot/crossgen2/crossgen2.csproj index 199ec84..ef1b82f 100644 --- a/src/coreclr/tools/aot/crossgen2/crossgen2.csproj +++ b/src/coreclr/tools/aot/crossgen2/crossgen2.csproj @@ -37,6 +37,9 @@ $(MicrosoftNetCoreAppRuntimePackRidLibTfmDir) $(MicrosoftNetCoreAppRuntimePackNativeDir) false + + .dwarf + --flat diff --git a/src/tests/Directory.Build.props b/src/tests/Directory.Build.props index 90d5d9d..2d73150 100644 --- a/src/tests/Directory.Build.props +++ b/src/tests/Directory.Build.props @@ -216,7 +216,6 @@ true <_IsApplePlatform Condition="'$(TargetsAppleMobile)' == 'true'">true <_IsiOSLikePlatform Condition="'$(TargetsAppleMobile)' == 'true'">true - --flat <_SymbolPrefix Condition="'$(_IsApplePlatform)' == 'true'">_