h2o / picotls

TLS 1.3 implementation in C (master supports RFC8446 as well as draft-26, -27, -28)
535 stars 140 forks source link

[fusion] unify detection scheme #492

Closed kazuho closed 11 months ago

kazuho commented 11 months ago

So far, the best scheme seems to be to actually compile the code.

Running the compiler with necessary options is insufficient, as they might ignore unknown options.

Checking the system processor is inadequate as not all x86-64 CPUs have the necessary capability, not to mention the case of cross compilation.