Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 904227

Summary: llvm.org.eclass should allow to override CMAKE_BUILD_TYPE
Product: Gentoo Linux Reporter: Adrien Dessemond <admnd>
Component: EclassesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.