-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NativeAOT-LLVM] Add WasmExternalDwarf property to create an external_debug_info section #2786
base: feature/NativeAOT-LLVM
Are you sure you want to change the base?
Changes from 1 commit
804111f
dd84ce5
e8fd31f
27e99ef
b12b969
5cffb73
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -35,6 +35,7 @@ The .NET Foundation licenses this file to you under the MIT license. | |||||||
<IlcTreatWarningsAsErrors Condition="'$(IlcTreatWarningsAsErrors)' == ''">$(TreatWarningsAsErrors)</IlcTreatWarningsAsErrors> | ||||||||
<_IsiOSLikePlatform Condition="'$(_targetOS)' == 'maccatalyst' or $(_targetOS.StartsWith('ios')) or $(_targetOS.StartsWith('tvos'))">true</_IsiOSLikePlatform> | ||||||||
<_IsApplePlatform Condition="'$(_targetOS)' == 'osx' or '$(_IsiOSLikePlatform)' == 'true'">true</_IsApplePlatform> | ||||||||
<WasmExternalDwarf Condition="'$(WasmExternalDwarf)' == ''and '$(_targetOS)' == 'browser' and '$(DotNetJsApi)' != 'true'">true</WasmExternalDwarf> | ||||||||
</PropertyGroup> | ||||||||
|
||||||||
<!-- Set up default feature switches --> | ||||||||
|
@@ -100,6 +101,7 @@ The .NET Foundation licenses this file to you under the MIT license. | |||||||
|
||||||||
<NativeObject>$(NativeIntermediateOutputPath)$(TargetName)$(NativeObjectExt)</NativeObject> | ||||||||
<NativeBinary Condition="'$(NativeBinary)' == ''">$(NativeOutputPath)$(TargetName)$(NativeBinaryExt)</NativeBinary> | ||||||||
<WasmBinary Condition="'$(_targetArchitecture)' == 'wasm'">$(NativeOutputPath)$(TargetName).wasm</WasmBinary> | ||||||||
yowl marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
<IlcExportUnmanagedEntrypoints Condition="'$(IlcExportUnmanagedEntrypoints)' == '' and '$(NativeLib)' == 'Shared'">true</IlcExportUnmanagedEntrypoints> | ||||||||
<ExportsFile Condition="$(ExportsFile) == '' and '$(BuildingFrameworkLibrary)' != 'true'">$(NativeIntermediateOutputPath)$(TargetName)$(ExportsFileExt)</ExportsFile> | ||||||||
|
||||||||
|
@@ -390,9 +392,11 @@ The .NET Foundation licenses this file to you under the MIT license. | |||||||
<ItemGroup> | ||||||||
<LlvmObjects Include="@(_IlcProducedFiles)" Condition="'%(Extension)' == '$(LlvmObjectExt)'"> | ||||||||
<NativeObject>%(RelativeDir)%(Filename)$(NativeObjectExt)</NativeObject> | ||||||||
<DwarfObject>"%(RelativeDir)%(Filename).dwo"</DwarfObject> | ||||||||
</LlvmObjects> | ||||||||
<NativeObjects Include="@(_IlcProducedFiles)" Condition="'%(Extension)' == '$(NativeObjectExt)'" /> | ||||||||
<NativeObjects Include="@(LlvmObjects->'%(NativeObject)')" /> | ||||||||
<DwarfObjects Include="@(LlvmObjects->'%(DwarfObject)')" /> | ||||||||
yowl marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
</ItemGroup> | ||||||||
</Target> | ||||||||
|
||||||||
|
@@ -439,12 +443,14 @@ The .NET Foundation licenses this file to you under the MIT license. | |||||||
<WasmCompilerPath Condition="'$(EMSDK)' == ''">"$(EmscriptenSdkToolsPath)bin/clang++"</WasmCompilerPath> | ||||||||
<WasmLinkerPath Condition="'$(EMSDK)' != ''">"$(EMSDK)/upstream/emscripten/emcc$(EmccScriptExt)"</WasmLinkerPath> | ||||||||
<WasmLinkerPath Condition="'$(EMSDK)' == ''">"$(EmscriptenSdkToolsPath)emscripten/emcc$(EmccScriptExt)"</WasmLinkerPath> | ||||||||
<WasmDwarfLinkerPath Condition="'$(EMSDK)' != ''">"$(EMSDK)/upstream/bin/llvm-dwp$(ExeExt)"</WasmDwarfLinkerPath> | ||||||||
<WasmDwarfLinkerPath Condition="'$(EMSDK)' == ''">"$(EmscriptenSdkToolsPath)/bin/llvm-dwp$(ExeExt)"</WasmDwarfLinkerPath> | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like leftovers from DWP (here and above with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks |
||||||||
</PropertyGroup> | ||||||||
|
||||||||
<PropertyGroup Condition="'$(_targetOS)' == 'wasi'"> | ||||||||
<WasmCompilerPath>"$(WASI_SDK_PATH)/bin/clang++"</WasmCompilerPath> | ||||||||
<WasmLinkerPath>"$(WASI_SDK_PATH)/bin/clang"</WasmLinkerPath> | ||||||||
</PropertyGroup> | ||||||||
</PropertyGroup> | ||||||||
|
||||||||
<!-- Invoke the compilers in parallel. --> | ||||||||
<ItemGroup> | ||||||||
|
@@ -575,6 +581,8 @@ The .NET Foundation licenses this file to you under the MIT license. | |||||||
<!-- see https://github.com/emscripten-core/emscripten/issues/16836 for the issue that means we have to force the linker to include these symbols before LTO --> | ||||||||
<!--<CustomLinkerArg Condition="'$(Optimize)' != 'true'" Include="$(WasmOptimizationSetting) -flto" /> --> | ||||||||
<CustomLinkerArg Condition="'$(IlcLlvmTarget)' != ''" Include="-target $(IlcLlvmTarget)" /> | ||||||||
|
||||||||
<CustomLinkerArg Condition="'$(WasmExternalDwarf)' == 'true'" Include="-gseparate-dwarf" /> | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
I think we should pass something like |
||||||||
</ItemGroup> | ||||||||
|
||||||||
<ItemGroup Condition="'$(_targetOS)' == 'browser'" > | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is already a documented property of this in the NAOT toolchain:
StripSymbols
. We can use it.Also, why disable for
DotNetJsApi
? I think it makes sense forDotNetJsApi
as well.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably, I didn't really know, and just copied what was in the publish file for the
.wasm
file. Will remove it.