feat: lake: CMake build types (#10578)

This PR adds support for the CMake spelling of a build type (i.e.,
capitalized) to Lake's `buildType` configuration option.
This commit is contained in:
Mac Malone 2025-09-26 17:06:12 -04:00 committed by GitHub
parent c3d9d0d931
commit 7ee3079afb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -118,7 +118,7 @@ public def leancArgs : BuildType → Array String
| release => #["-O3", "-DNDEBUG"]
public def ofString? (s : String) : Option BuildType :=
match s with
match s.decapitalize with
| "debug" => some .debug
| "relWithDebInfo" => some .relWithDebInfo
| "minSizeRel" => some .minSizeRel

View file

@ -16,7 +16,7 @@ releaseRepo = ""
buildArchive = ""
preferReleaseBuild = false
packagesDir = ".lake/packages"
buildType = "release"
buildType = "Release"
leanOptions = []
moreServerOptions = []
moreLeanArgs = []