File tree Expand file tree Collapse file tree 5 files changed +6
-5
lines changed
Expand file tree Collapse file tree 5 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ RUN if [ "$INITIAL_BUILD" != "true" ]; then \
5151 mkdir /home/root && cd home/root && \
5252 git clone --depth 1 --single-branch --branch $BRANCH_NAME https://github.com/flang-compiler/classic-flang-llvm-project.git classic-flang-llvm-project && \
5353 cd classic-flang-llvm-project && \
54- ./build-llvm-project.sh -t AArch64 -p /home/github/usr/local -n `nproc --ignore=1` -a /usr/bin/gcc-12 -b /usr/bin/g++-12 -i -v; \
54+ ./build-llvm-project.sh -t AArch64 -p /home/github/usr/local -n `nproc --ignore=1` -a /usr/bin/gcc-12 -b /usr/bin/g++-12 -i -x "-DLLVM_ENABLE_ASSERTIONS=ON" - v; \
5555 fi
5656
5757RUN useradd github && \
Original file line number Diff line number Diff line change 4747 - name : Build and install llvm
4848 run : |
4949 cd ${{ env.build_path }}/classic-flang-llvm-project
50- ./build-llvm-project.sh -t ${{ matrix.target }} -p ${{ env.install_prefix }} -a /usr/bin/${{ matrix.cc }}-${{ matrix.version }} -b /usr/bin/${{ matrix.cpp }}-${{ matrix.version }} -n $(nproc) -i -v
50+ ./build-llvm-project.sh -t ${{ matrix.target }} -p ${{ env.install_prefix }} -a /usr/bin/${{ matrix.cc }}-${{ matrix.version }} -b /usr/bin/${{ matrix.cpp }}-${{ matrix.version }} -n $(nproc) -i -x "-DLLVM_ENABLE_ASSERTIONS=ON" - v
5151
5252 - name : Checkout flang
5353 run : |
Original file line number Diff line number Diff line change 5858 ${{ matrix.cpp }}-${{ matrix.version }} --version
5959
6060 - name : Build and install llvm
61- run : ./build-llvm-project.sh -t ${{ matrix.target }} -p ${{ env.install_prefix }} -a /usr/bin/${{ matrix.cc }}-${{ matrix.version }} -b /usr/bin/${{ matrix.cpp }}-${{ matrix.version }} -n $(nproc) -c -i -s -v
61+ run : ./build-llvm-project.sh -t ${{ matrix.target }} -p ${{ env.install_prefix }} -a /usr/bin/${{ matrix.cc }}-${{ matrix.version }} -b /usr/bin/${{ matrix.cpp }}-${{ matrix.version }} -n $(nproc) -c -i -s -x "-DLLVM_ENABLE_ASSERTIONS=ON" - v
6262
6363 - name : Checkout flang
6464 run : |
Original file line number Diff line number Diff line change @@ -118,12 +118,12 @@ jobs:
118118 # This should be a no-op for non-mac OSes
119119 PKG_CONFIG_PATH : /usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig//12
120120 run : |
121- ./build-llvm-project.sh -t X86 -e "clang" -p /usr/local -s -n $(sysctl -n hw.logicalcpu) -i -v
121+ ./build-llvm-project.sh -t X86 -e "clang" -p /usr/local -s -n $(sysctl -n hw.logicalcpu) -i -x "-DLLVM_ENABLE_ASSERTIONS=ON" - v
122122 cd build
123123 make check-all
124124 - name : Test clang ubuntu
125125 if : ${{ matrix.os == 'ubuntu-latest'}}
126126 run : |
127- ./build-llvm-project.sh -t X86 -e "${{ inputs.projects }}" -p /usr/local -s -n $(nproc) -i -v
127+ ./build-llvm-project.sh -t X86 -e "${{ inputs.projects }}" -p /usr/local -s -n $(nproc) -i -x "-DLLVM_ENABLE_ASSERTIONS=ON" - v
128128 cd build
129129 make check-all
Original file line number Diff line number Diff line change 6767 -a /usr/bin/${{ matrix.cc }}-${{ matrix.version }} \
6868 -b /usr/bin/${{env.cpp}}-${{ matrix.version }} \
6969 -n $(nproc) \
70+ -x "-DLLVM_ENABLE_ASSERTIONS=ON" \
7071 -v
7172 # Archive the source + build directories for future installation
7273 cd ..
You can’t perform that action at this time.
0 commit comments