Closed huitema closed 2 years ago
Can you access the variables being used in picotls/CMakeFiles.txt? If so, checking the value of WITH_FUSION
would be the thing to do.
Otherwise, we should probably discuss building fusion on platforms other than x86-64. This can be a no-op (i.e., all callbacks of ptls_aead_algorithm_t
set to NULL). I think it's bizarre to build an AEAD backend specific to x86-64 on platforms other than x86-64 (do we want to build ptls-openssl when openssl is missing?), but having an option to detect availability at runtime does provide flexibility.
Fixed by simply disabling fusion support for Windows.
I am trying to integrate the build of picotls in the build of picoquic. The first attempt was to add lines in the CMakeFile.txt of Picoquic, such as:
This works on some platforms, as long as picotls-fusion is supported, but it fails on others, such as MacOS M1, that have no support for fusion. In that case, the build will later fail.
In the current state of picoquic, without using "FetchContent", things work because picotls is entirely build, before calling cmake for picoquic. The cmake script of Picoquic will test whether the fusion library was built, and set compile flags accordingly. But I cannot use that trick here -- there is a single call for cmake of picoquic and picotls, before make itself is run. I only have a bad solution: never use "fusion" in picoquic, remove all dependencies. Works, but then, fusion is never used. Any idea on how to do that better?