Skip to content

Commit

Permalink
cmake opts
Browse files Browse the repository at this point in the history
  • Loading branch information
rengolin committed Jan 30, 2024
1 parent d7b967c commit c95a197
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ on:
pull_request:
branches: [ "ghactions" ]

env:
# clang, gcc
CC: clang
CXX: clang++
# ld, gold, lld
LD: lld
# Release, Debug, RelWithDebInfo
BUILD: RelWithDebInfo
# "Address;Memory;Leak;Undefined"
SAN: ""
# ON, OFF
OPENMP: OFF
ONEDNN: OFF

jobs:
build_tpp_mlir:
runs-on: self-hosted
Expand All @@ -28,9 +42,14 @@ jobs:
run: |
mkdir -p build
cmake -G Ninja -B build . \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DMLIR_DIR=${{ env.LLVM_DIR }}/lib/cmake/mlir \
-DLLVM_EXTERNAL_LIT=${{ env.LLVM_LIT }}
-DCMAKE_C_COMPILER=${CC} -DCMAKE_CXX_COMPILER=${CXX} \
-DCMAKE_BUILD_TYPE=${BUILD} \
-DMLIR_DIR=${{ env.LLVM_DIR }}/lib/cmake/mlir \
-DLLVM_EXTERNAL_LIT=${{ env.LLVM_LIT }} \
-DLLVM_USE_LINKER=${LD} \
-DUSE_SANITIZER=${SAN} \
-DUSE_OpenMP=${OPENMP} \
-DUSE_OneDNN=${ONEDNN}
- name: Build
run: ninja -C build all
Expand Down

0 comments on commit c95a197

Please sign in to comment.