-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NativeAOT-LLVM] Build on Linux (#2574)
* Enable linux builds * move NATIVEAOT_CI_WASM_BUILD_EMSDK_PATH to be inline with windows * just use pwsh for installing node. Delete the .cmd * normalize checked for llvm config * use powershell only for emscripten install * use pwsh inline with node * do not search system paths for LLVM * feedback tidy * do not use __ExtraCmakeArgs * Update src/coreclr/build-runtime.sh Co-authored-by: SingleAccretion <62474226+SingleAccretion@users.noreply.github.com> * Update src/coreclr/jit/CMakeLists.txt Co-authored-by: SingleAccretion <62474226+SingleAccretion@users.noreply.github.com> * Ensure Powershell on linux Remove wasm build options add cmake to path on windows Use more Powershell where possible Simplify New-Item use Feedback * feedback, move tool installations to correct place. --------- Co-authored-by: SingleAccretion <62474226+SingleAccretion@users.noreply.github.com>
- Loading branch information
1 parent
e5a0829
commit 07ff833
Showing
16 changed files
with
148 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
param( | ||
$InstallDir | ||
) | ||
|
||
$ErrorActionPreference="Stop" | ||
|
||
New-Item -ItemType Directory -Force -Path $InstallDir | ||
|
||
Set-Location -Path $InstallDir | ||
|
||
git clone https://github.com/emscripten-core/emsdk.git | ||
|
||
Set-Location -Path emsdk | ||
|
||
# Checkout a specific commit to avoid unexpected issues | ||
git checkout 37b85e9 | ||
|
||
./emsdk install 3.1.47 | ||
|
||
./emsdk activate 3.1.47 | ||
|
||
# Set a variable for later use (used in common/build.ps1) | ||
Write-Host "##vso[task.setvariable variable=NATIVEAOT_CI_WASM_BUILD_EMSDK_PATH]$PWD" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
mkdir -p $1 | ||
|
||
cd $1 | ||
|
||
curl -L -o powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.3.12/powershell-7.3.12-linux-x64.tar.gz | ||
|
||
# Create the target folder where powershell will be placed | ||
mkdir powershell7 | ||
|
||
# Expand powershell to the target folder | ||
tar zxf powershell.tar.gz -C powershell7 | ||
|
||
# Set execute permissions | ||
chmod +x powershell7/pwsh | ||
|
||
echo setting PATH | ||
echo ##vso[task.setvariable variable=PATH]$PATH:$1/powershell7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Save the current PATH because init-vs-env.cmd will add enough to the PATH that calling it twice | ||
# will exceed the command length limit. | ||
set OLD_PATH=%PATH% | ||
call "%RepoRoot%eng\native\init-vs-env.cmd" wasm || exit /b 1 | ||
|
||
call set CMakeDir=%%CMakePath:\cmake.exe=%% | ||
|
||
echo CMakeDir is %CMakeDir% | ||
echo Setting PATH to %OLD_PATH%;%CMakeDir% | ||
echo ##vso[task.setvariable variable=PATH]%OLD_PATH%;%CMakeDir% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters