Add variables to contain lists of MACHINE_ARCH values to use
to determine little or big endian.
Only error out about not being able to determine endianess if
TARGET_ENDIANNESS is empty and not cross-compiling.
Obtained from: Juniper Networks, Inc.
Differential D44629
Optimize the handling of big/little endian determination. stevek on Apr 3 2024, 11:27 PM. Authored by Tags None Referenced Files
Details
Diff Detail
Event TimelineComment Actions I'm a little confused by this change - it doesn't seem notably clearer to me. There seems to be a functional change/improvement that isn't really described in the commit message. Comment Actions In what way? A set of lists is often easier to manage (and clearer, especially in a diff) than a pile of or'd conditional expressions.
Are you referring to the host part? Comment Actions
I think it's a bit of a toss-up -- the set of targets in the two lists is not large and does not change frequently. I'll grant you that the two lists are somewhat nicer than the large set if if-or conditions, but N_$e= ${MACHINE_ARCH_LIST.$e:@m@N$m@:ts:} makes up for it by taking a while to figure out. Is the host change fixing a bug? Comment Actions It's a bit of a toss-up from an understanding standpoint, I suppose, if one is not used to doing that sort of manipulation. At Juniper, we have been using this sort of construct with bmake for many years, so it is somewhat second nature at this point.
Yes, the host change fixes a bug that can occur when building with dirdeps build.
|