libroot/musl/math: Fix non-legacy hybrids
* If you're building a hybrid, each arch directory gets included. * If the architectures are all non-legacy, you end up getting "all architectures" built in each architecture directory. * This prevents this condition by filtering on sane architecture matches per arch directory. Change-Id: I529e2b3d315b0930aff594239dadd9db70dc9cfa Reviewed-on: https://review.haiku-os.org/c/haiku/+/3316 Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com> Reviewed-by: Adrien Destugues <pulkomandy@gmail.com> Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
parent
f598f71cd5
commit
e1fafa3a6e
@ -4,11 +4,6 @@ SubDirCcFlags -Wno-unused-but-set-variable ;
|
||||
|
||||
SubDirSysHdrs [ FDirName $(SUBDIR) .. .. include ] ;
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. internal ] ;
|
||||
|
||||
local arch ;
|
||||
for arch in $(TARGET_ARCHS) {
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch $(arch) ] ;
|
||||
}
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch generic ] ;
|
||||
|
||||
local generics =
|
||||
@ -83,10 +78,12 @@ local generics =
|
||||
;
|
||||
|
||||
local architectureObject ;
|
||||
for architectureObject in [ MultiArchSubDirSetup ] {
|
||||
for architectureObject in [ MultiArchSubDirSetup arm ] {
|
||||
on $(architectureObject) {
|
||||
local architecture = $(TARGET_PACKAGING_ARCH) ;
|
||||
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch $(architecture) ] ;
|
||||
|
||||
MergeObject <$(architecture)>posix_musl_math.o :
|
||||
fabs.c fabsf.c
|
||||
fma.c fmaf.c
|
||||
|
@ -4,11 +4,6 @@ SubDirCcFlags -Wno-unused-but-set-variable ;
|
||||
|
||||
SubDirSysHdrs [ FDirName $(SUBDIR) .. .. include ] ;
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. internal ] ;
|
||||
|
||||
local arch ;
|
||||
for arch in $(TARGET_ARCHS) {
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch $(arch) ] ;
|
||||
}
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch generic ] ;
|
||||
|
||||
local generics =
|
||||
@ -83,10 +78,12 @@ local generics =
|
||||
;
|
||||
|
||||
local architectureObject ;
|
||||
for architectureObject in [ MultiArchSubDirSetup ] {
|
||||
for architectureObject in [ MultiArchSubDirSetup arm64 ] {
|
||||
on $(architectureObject) {
|
||||
local architecture = $(TARGET_PACKAGING_ARCH) ;
|
||||
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch $(architecture) ] ;
|
||||
|
||||
MergeObject <$(architecture)>posix_musl_math.o :
|
||||
fabs.c fabsf.c
|
||||
fma.c fmaf.c
|
||||
|
@ -4,11 +4,6 @@ SubDirCcFlags -Wno-unused-but-set-variable ;
|
||||
|
||||
SubDirSysHdrs [ FDirName $(SUBDIR) .. .. include ] ;
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. internal ] ;
|
||||
|
||||
local arch ;
|
||||
for arch in $(TARGET_ARCHS) {
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch $(arch) ] ;
|
||||
}
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch generic ] ;
|
||||
|
||||
local generics =
|
||||
@ -83,10 +78,12 @@ local generics =
|
||||
;
|
||||
|
||||
local architectureObject ;
|
||||
for architectureObject in [ MultiArchSubDirSetup ] {
|
||||
for architectureObject in [ MultiArchSubDirSetup m68k ] {
|
||||
on $(architectureObject) {
|
||||
local architecture = $(TARGET_PACKAGING_ARCH) ;
|
||||
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch $(architecture) ] ;
|
||||
|
||||
MergeObject <$(architecture)>posix_musl_math.o :
|
||||
|
||||
$(generics)
|
||||
|
@ -4,11 +4,6 @@ SubDirCcFlags -Wno-unused-but-set-variable ;
|
||||
|
||||
SubDirSysHdrs [ FDirName $(SUBDIR) .. .. include ] ;
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. internal ] ;
|
||||
|
||||
local arch ;
|
||||
for arch in $(TARGET_ARCHS) {
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch $(arch) ] ;
|
||||
}
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch generic ] ;
|
||||
|
||||
local generics =
|
||||
@ -83,10 +78,12 @@ local generics =
|
||||
;
|
||||
|
||||
local architectureObject ;
|
||||
for architectureObject in [ MultiArchSubDirSetup ] {
|
||||
for architectureObject in [ MultiArchSubDirSetup ppc ] {
|
||||
on $(architectureObject) {
|
||||
local architecture = $(TARGET_PACKAGING_ARCH) ;
|
||||
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch $(architecture) ] ;
|
||||
|
||||
MergeObject <$(architecture)>posix_musl_math.o :
|
||||
fabs.c fabsf.c
|
||||
fma.c fmaf.c
|
||||
|
@ -4,11 +4,6 @@ SubDirCcFlags -Wno-unused-but-set-variable ;
|
||||
|
||||
SubDirSysHdrs [ FDirName $(SUBDIR) .. .. include ] ;
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. internal ] ;
|
||||
|
||||
local arch ;
|
||||
for arch in $(TARGET_ARCHS) {
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch $(arch) ] ;
|
||||
}
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch generic ] ;
|
||||
|
||||
local generics =
|
||||
@ -83,10 +78,12 @@ local generics =
|
||||
;
|
||||
|
||||
local architectureObject ;
|
||||
for architectureObject in [ MultiArchSubDirSetup ] {
|
||||
for architectureObject in [ MultiArchSubDirSetup riscv64 ] {
|
||||
on $(architectureObject) {
|
||||
local architecture = $(TARGET_PACKAGING_ARCH) ;
|
||||
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch $(architecture) ] ;
|
||||
|
||||
MergeObject <$(architecture)>posix_musl_math.o :
|
||||
fabs.c fabsf.c
|
||||
fma.c fmaf.c
|
||||
|
@ -4,11 +4,6 @@ SubDirCcFlags -Wno-unused-but-set-variable ;
|
||||
|
||||
SubDirSysHdrs [ FDirName $(SUBDIR) .. .. include ] ;
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. internal ] ;
|
||||
|
||||
local arch ;
|
||||
for arch in $(TARGET_ARCHS) {
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch $(arch) ] ;
|
||||
}
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch generic ] ;
|
||||
|
||||
local generics =
|
||||
@ -87,6 +82,8 @@ for architectureObject in [ MultiArchSubDirSetup ] {
|
||||
on $(architectureObject) {
|
||||
local architecture = $(TARGET_PACKAGING_ARCH) ;
|
||||
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch $(architecture) ] ;
|
||||
|
||||
MergeObject <$(architecture)>posix_musl_math.o :
|
||||
$(generics)
|
||||
;
|
||||
|
@ -2,14 +2,8 @@ SubDir HAIKU_TOP src system libroot posix musl math x86 ;
|
||||
|
||||
SubDirSysHdrs [ FDirName $(SUBDIR) .. .. include ] ;
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. internal ] ;
|
||||
|
||||
local arch ;
|
||||
for arch in $(TARGET_ARCHS) {
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch $(arch) ] ;
|
||||
}
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch generic ] [ FDirName $(SUBDIR) .. ] ;
|
||||
|
||||
|
||||
local generics =
|
||||
acosh.c acoshf.c acoshl.c
|
||||
asinh.c asinhf.c asinhl.c
|
||||
@ -58,10 +52,12 @@ local generics =
|
||||
;
|
||||
|
||||
local architectureObject ;
|
||||
for architectureObject in [ MultiArchSubDirSetup ] {
|
||||
for architectureObject in [ MultiArchSubDirSetup x86 x86_gcc2 ] {
|
||||
on $(architectureObject) {
|
||||
local architecture = $(TARGET_PACKAGING_ARCH) ;
|
||||
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch $(architecture) ] ;
|
||||
|
||||
if $(architecture) = x86_gcc2 {
|
||||
# GCC 2 miscompiles some of the files in here, so we use GCC 8.
|
||||
original_TARGET_CC_x86_gcc2 = $(TARGET_CC_x86_gcc2) ;
|
||||
|
@ -4,11 +4,6 @@ SubDirCcFlags -Wno-unused-but-set-variable ;
|
||||
|
||||
SubDirSysHdrs [ FDirName $(SUBDIR) .. .. include ] ;
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. internal ] ;
|
||||
|
||||
local arch ;
|
||||
for arch in $(TARGET_ARCHS) {
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch $(arch) ] ;
|
||||
}
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch generic ] ;
|
||||
|
||||
local generics =
|
||||
@ -51,10 +46,12 @@ local generics =
|
||||
;
|
||||
|
||||
local architectureObject ;
|
||||
for architectureObject in [ MultiArchSubDirSetup ] {
|
||||
for architectureObject in [ MultiArchSubDirSetup x86_64 ] {
|
||||
on $(architectureObject) {
|
||||
local architecture = $(TARGET_PACKAGING_ARCH) ;
|
||||
|
||||
UseHeaders [ FDirName $(SUBDIR) .. .. arch $(architecture) ] ;
|
||||
|
||||
MergeObject <$(architecture)>posix_musl_math.o :
|
||||
acosl.s asinl.s atan2l.s atanl.s
|
||||
ceill.s
|
||||
|
Loading…
Reference in New Issue
Block a user