diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-09-05 21:52:59 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-09-05 21:52:59 +0300 |
commit | 01d437c0618e76d3c44e7d58f5d175c75cb37bac (patch) | |
tree | 9bf4f42c094067154391989e52eaa51b2f6226aa /action.yml | |
parent | version 13 has been released (diff) | |
download | setup-clang-01d437c0618e76d3c44e7d58f5d175c75cb37bac.tar.gz setup-clang-01d437c0618e76d3c44e7d58f5d175c75cb37bac.zip |
set up clang/clang++ symlinksv1.3
Diffstat (limited to '')
-rw-r--r-- | action.yml | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -15,7 +15,7 @@ inputs: required: false default: 0 cc: - description: Set up cc/c++ executables + description: Set up cc/clang/c++/clang++ executables required: false default: 1 hardlinks: @@ -211,6 +211,9 @@ runs: New-Variable cc -Value ('${{ inputs.cc }}' -eq '1') -Option Constant + New-Variable clang -Value '${{ steps.install.outputs.clang }}' -Option Constant + New-Variable clangxx -Value '${{ steps.install.outputs.clangxx }}' -Option Constant + function Link-Exe { param( [Parameter(Mandatory=$true)] @@ -234,8 +237,14 @@ runs: } if ($cc) { - Link-Exe '${{ steps.install.outputs.clang }}' cc - Link-Exe '${{ steps.install.outputs.clangxx }}' c++ + Link-Exe $clang cc + if ($clang -ne 'clang') { + Link-Exe $clang 'clang' + } + Link-Exe $clangxx c++ + if ($clangxx -ne 'clang++') { + Link-Exe $clangxx 'clang++' + } } shell: pwsh |