Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904227 - llvm.org.eclass should allow to override CMAKE_BUILD_TYPE
Summary: llvm.org.eclass should allow to override CMAKE_BUILD_TYPE
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-12 12:35 UTC by Adrien Dessemond
Modified: 2023-04-12 14:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrien Dessemond 2023-04-12 12:35:53 UTC
The current behavior is to enforce CMAKE_BUILD_TYPE='RelWithDebInfo' in all cases, no way to override this to build a 'Debug' version of sys-devel/lvvm to investigate crashes :(

Of course, the generated CMakeCache.txt files can be manually edited afterwards but it would be more convenient to not do that.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-12 12:45:00 UTC
Does MYCMAKEARGS="-DCMAKE_BUILD_TYPE=Debug" work for you as an environment variable?
Comment 2 Adrien Dessemond 2023-04-12 14:29:04 UTC
Your suggestion is working :)

-- <<< Gentoo configuration >>>
Build type      Debug
Install path    /usr/lib/llvm/16


Let's close this bug, nothing more to do.