Skip to content

Commit 2f45f73

Browse files
committed
[build] Specify LLVM_MAIN_SRC_DIR when running build-flang.sh
Otherwise Classic Flang's CMakeLists.txt will be unable to find llvm-lit and cannot generate test-related goals, e.g. `check-all`.
1 parent 5896e0b commit 2f45f73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/flang-arm64-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Build and install libpgmath & flang
5858
run: |
5959
cd ${{ env.build_path }}/flang
60-
./build-flang.sh -t ${{ matrix.target }} -p ${{ env.install_prefix }} -n $(nproc)
60+
./build-flang.sh -t ${{ matrix.target }} -p ${{ env.install_prefix }} -n $(nproc) -l ${{ env.build_path }}/classic-flang-llvm-project/llvm
6161
6262
- name: Copy llvm-lit
6363
run: |

.github/workflows/flang-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- name: Build and install libpgmath & flang
6464
run: |
6565
cd ../../flang
66-
./build-flang.sh -t ${{ matrix.target }} -p ${{ env.install_prefix }} -n $(nproc) -c -s
66+
./build-flang.sh -t ${{ matrix.target }} -p ${{ env.install_prefix }} -n $(nproc) -c -s -l $(realpath ../classic-flang-llvm-project/classic-flang-llvm-project/llvm)
6767
6868
- name: Copy llvm-lit
6969
run: |

0 commit comments

Comments
 (0)