You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ErrorCondition="'$(_WhereLinker)' != '0' and '$(TargetOS)' == 'OSX'"Text="Platform linker ('$(CppLinker)') not found. Try installing Xcode to resolve the problem." />
110
-
<ErrorCondition="'$(_WhereLinker)' != '0' and '$(TargetOS)' != 'OSX'"Text="Platform linker ('$(CppLinker)') not found. Try installing $(CppLinker) or the appropriate package for your platform to resolve the problem." />
112
+
113
+
<ExecCommand="command -v $(CppCompilerAndLinkerAlternative)"Condition="'$(CppCompilerAndLinkerAlternative)' != '' and '$(_WhereLinker)' != '0'"IgnoreExitCode="true"StandardOutputImportance="Low">
<ErrorCondition="'$(_WhereLinker)' != '0' and '$(TargetOS)' == 'OSX'"Text="Platform linker ('$(CppLinker)') not found in PATH. Try installing Xcode to resolve the problem." />
125
+
<ErrorCondition="'$(_WhereLinker)' != '0' and '$(CppCompilerAndLinkerAlternative)' != ''"
126
+
Text="Platform linker ('$(CppLinker)' or '$(CppCompilerAndLinkerAlternative)') not found in PATH. Try installing appropriate package for $(CppLinker) or $(CppCompilerAndLinkerAlternative) to resolve the problem." />
127
+
<ErrorCondition="'$(_WhereLinker)' != '0' and '$(CppCompilerAndLinkerAlternative)' == '' and '$(TargetOS)' != 'OSX'"
128
+
Text="Requested linker ('$(CppLinker)') not found in PATH." />
129
+
130
+
<ExecCommand="command -v objcopy"IgnoreExitCode="true"StandardOutputImportance="Low"Condition="'$(TargetOS)' != 'OSX' and '$(StripSymbols)' == 'true'">
Copy file name to clipboardExpand all lines: src/coreclr/nativeaot/docs/optimizing.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,6 @@ To aid in troubleshooting some of the most common problems related to trimming a
44
44
45
45
## Special considerations for Linux/macOS
46
46
47
-
Debugging symbols (data about your program required for debugging) is by default part of native executable files on Unix-like operating systems. To minimize the size of your native executable, you can run the `strip` tool to remove the debugging symbols.
47
+
Debugging symbols (data about your program required for debugging) is by default part of native executable files on Unix-like operating systems. To strip symbols into a separate file (`*.dbg` on Linux and `*.dwarf` on macOS), set `<StripSymbols>true</StripSymbols>`.
48
48
49
49
No action is needed on Windows since the platform convention is to generate debug information into a separate file (`*.pdb`).
0 commit comments