-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Remove bash dependency from init-compiler #77304
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
Changes from 6 commits
26f9fb1
0d8d146
30b703d
3396707
78769a8
210507b
9049613
68ab523
6a566f0
373ed2c
7163c3e
ebaf445
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 |
|---|---|---|
|
|
@@ -21,8 +21,6 @@ | |
| <PropertyGroup Condition="'$(TestNativeAot)' == 'true'"> | ||
| <IlcToolsPath>$(CoreCLRILCompilerDir)</IlcToolsPath> | ||
| <IlcToolsPath Condition="'$(TargetArchitecture)' != '$(BuildArchitecture)'">$(CoreCLRCrossILCompilerDir)</IlcToolsPath> | ||
| <CppCompilerAndLinker Condition="'$(TargetArchitecture)' != '$(BuildArchitecture)' and '$(HostOS)' == 'linux' and '$(RuntimeIdentifier)' == 'linux-musl-arm64'">clang-15</CppCompilerAndLinker> | ||
| <CppCompilerAndLinker Condition="'$(TargetArchitecture)' != '$(BuildArchitecture)' and '$(HostOS)' == 'linux' and '$(RuntimeIdentifier)' != 'linux-musl-arm64'">clang-9</CppCompilerAndLinker> | ||
| <SysRoot Condition="'$(TargetArchitecture)' != '$(BuildArchitecture)' and '$(HostOS)' != 'windows'">$(ROOTFS_DIR)</SysRoot> | ||
| <IlcBuildTasksPath>$(CoreCLRILCompilerDir)netstandard/ILCompiler.Build.Tasks.dll</IlcBuildTasksPath> | ||
| <IlcSdkPath>$(CoreCLRAotSdkDir)</IlcSdkPath> | ||
|
|
@@ -84,6 +82,21 @@ | |
| </ItemGroup> | ||
| </Target> | ||
|
|
||
| <Target Name="LocateNativeCompiler" | ||
| Condition="'$(TestNativeAot)' == 'true' and '$(TargetOS)' != 'windows'" | ||
akoeplinger marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| BeforeTargets="SetupOSSpecificProps"> | ||
| <PropertyGroup> | ||
| <CppCompilerAndLinker Condition="'$(CppCompilerAndLinker)' == ''">clang</CppCompilerAndLinker> | ||
|
Member
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. looking at the whole PR again, maybe it'd be better to not use this property name at all and go with what we use in the NativeExports.csproj: that'd also support overriding via the
Member
Author
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. Compiler == CppCompilerAndLinker here, see eng/build.sh
Member
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. omg, so many abstractions 😄
Member
Author
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. :) I am all for replacing |
||
| </PropertyGroup> | ||
|
|
||
| <Exec Command="sh -c 'build_arch="$(TargetArchitecture)" compiler="$(CppCompilerAndLinker)" . "$(RepositoryEngineeringDir)/common/native/init-compiler.sh" && echo $CC' 2>/dev/null" | ||
| EchoOff="true" | ||
| ConsoleToMsBuild="true" | ||
| StandardOutputImportance="Low"> | ||
| <Output TaskParameter="ConsoleOutput" PropertyName="CppLinker" /> | ||
akoeplinger marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| </Exec> | ||
| </Target> | ||
|
|
||
| <Target Name="PublishTestAsSingleFile" | ||
| Condition="'$(IsCrossTargetingBuild)' != 'true'" | ||
| AfterTargets="Build" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.