Skip to content

Commit

Permalink
Another attempt to fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarkall committed May 1, 2024
1 parent 3dc7343 commit 8265c47
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,15 @@ def validate_path(path):
if debug or verbose:
cmake_flags += ["--log-level=%s" % ("DEBUG" if debug else "VERBOSE")]

if debug:
build_type = "Debug"
elif debug_release:
build_type = "RelWithDebInfo"
else:
build_type = "Release"

cmake_flags += f"""\
-DCMAKE_BUILD_TYPE={(
"Debug" if debug else "RelWithDebInfo" if debug_release else "Release"
)}
-DCMAKE_BUILD_TYPE={build_type}
-DBUILD_SHARED_LIBS=ON
-DCMAKE_CUDA_ARCHITECTURES={str(arch)}
-DLegion_MAX_DIM={str(maxdim)}
Expand Down

0 comments on commit 8265c47

Please sign in to comment.