Fuchsia uses zx_system_get_features in lieu of getauxval. Use this call when checking for CRC32 support.
Details
Diff Detail
Event Timeline
compiler-rt/lib/scudo/scudo_utils.cpp | ||
---|---|---|
32 | I would move this in the arm #if with an else for the rest, so we don't even have to include getauxval. | |
133 | Same here, I would move this under the arm #if, as a whole function, and put all the rest in the #else. | |
134 | We could probably use u32 here instead for consistency. |
compiler-rt/lib/scudo/scudo_utils.cpp | ||
---|---|---|
19 | I actually find the nested preprocessor if/elses a little trickier to read, personally o.o;;; but, made the changes! |
Sorry, you were right! The initial version was less complicated.
I'm updating this to fallback to it, with the style changes included.
So Fuchsia is not POSIX, that block can go in the #else as well.