configure & build: Rework legacy GCC detection to parse versions outside of Jam.
Jam comparison logic is string-based, and so was detecting GCC >= 10 as being < 2. This rectifies that by removing the GCC version parsing from Jam logic entirely, and setting various BuildConfig variables instead. Change-Id: I0c0ae3b9002fb5e77f9ca7a78600c91871657f03 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3293 Reviewed-by: Adrien Destugues <[email protected]> Reviewed-by: Jérôme Duval <[email protected]> Reviewed-by: Alex von Gluck IV <[email protected]>
This commit is contained in:
committed by
Alex von Gluck IV
parent
a3f0a36a79
commit
47320dd0ab
@@ -48,7 +48,7 @@ AddFilesToPackage develop lib $(architecture)
|
||||
# ABI independent stuff
|
||||
|
||||
# cpp headers
|
||||
if $(HAIKU_GCC_VERSION_$(architecture)[1]) = 2 {
|
||||
if $(HAIKU_CC_IS_LEGACY_GCC_$(architecture)) = 1 {
|
||||
# GCC 2 only -- for GCC 4 they come with the gcc package
|
||||
CopyDirectoryToPackage develop headers c++
|
||||
: [ FDirName $(HAIKU_TOP) headers cpp ] : 2.95.3 ;
|
||||
|
||||
Reference in New Issue
Block a user