Skip to content

Commit

Permalink
bug[next] Default to Release in CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
havogt committed Jan 23, 2024
1 parent 8bd5a41 commit 43b4e23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/gt4py/next/otf/compilation/build_systems/cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class CMakeFactory(
"""Create a CMakeProject from a ``CompilableSource`` stage object with given CMake settings."""

cmake_generator_name: str = "Ninja"
cmake_build_type: BuildType = BuildType.DEBUG
cmake_build_type: BuildType = BuildType.RELEASE
cmake_extra_flags: Optional[list[str]] = None

def __call__(
Expand Down Expand Up @@ -105,7 +105,7 @@ class CMakeProject(
source_files: dict[str, str]
program_name: str
generator_name: str = "Ninja"
build_type: BuildType = BuildType.DEBUG
build_type: BuildType = BuildType.RELEASE
extra_cmake_flags: list[str] = dataclasses.field(default_factory=list)

def build(self):
Expand Down
2 changes: 1 addition & 1 deletion src/gt4py/next/otf/compilation/build_systems/compiledb.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class CompiledbFactory(
Generate a compiledb only if there isn't one for the given combination of cmake configuration and library dependencies.
"""

cmake_build_type: cmake.BuildType = cmake.BuildType.DEBUG
cmake_build_type: cmake.BuildType = cmake.BuildType.RELEASE
cmake_extra_flags: list[str] = dataclasses.field(default_factory=list)
renew_compiledb: bool = False

Expand Down

0 comments on commit 43b4e23

Please sign in to comment.