Skip to content

Draft: abuild: simplify cross strip

Sertonix requested to merge sertonix/abuild:cross-strip into master

Looking through all code paths I came to this conclusion: ${subpkgarch:-$pkgarch} can only ever be noarch or $CARCH.

Since noarch is already checked for it can only be $CARCH when entering the case statement. This means the second case statement always matches and the third one can be removed. The second and first case statement do the same thing as $CROSS_COMPILE. The value is ${CHOST}- when $CBUILD_ARCH and $CARCH don't match.

Partially reverts f459607da76

Edited by Sertonix

Merge request reports