Skip to content

Commit

Permalink
Update METIS build to ensure position-independent code, fixes OpenFUS…
Browse files Browse the repository at this point in the history
…IONToolkit#10

 - Add Ubuntu 22.04 variant to CI build
  • Loading branch information
hansec committed Nov 30, 2023
1 parent de42b18 commit be932ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/build_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ jobs:
os: ubuntu-20.04,
cc: "gcc-10", cxx: "g++-10", fc: "gfortran-10", python: "python", pip: "pip"
}
- {
name: "Ubuntu 22.04 GCC 13",
os: ubuntu-22.04,
cc: "gcc-13", cxx: "g++-13", fc: "gfortran-13", python: "python3", pip: "pip3"
}
- {
name: "macOS Monterey GCC 12",
os: macos-12,
Expand Down
6 changes: 5 additions & 1 deletion src/utilities/build_libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,11 @@ def setup(self, config_dict):

def build(self):
build_lines = [
"make config cc={CC} cmake={CMAKE} prefix={METIS_ROOT}",
"GKLIB_PATH=$(realpath GKlib)",
"rm -rf build",
"mkdir -p build",
"cd build",
"{CMAKE} -DCMAKE_INSTALL_PREFIX={METIS_ROOT} -DCMAKE_C_COMPILER={CC} -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON -DGKLIB_PATH=$GKLIB_PATH .. ",
"make -j{MAKE_THREADS}",
"make install"
]
Expand Down

0 comments on commit be932ea

Please sign in to comment.