build-macos: fix C++20 compatibility for Clang13.1

Fixes compilation on Clang13.1 by backporting some C++20
features that aren't available in Clang and fixing
the CMake config. Note that this doesn't yet properly package
the app nor does anything work at this point.

jthread, stop_token, and condition_variable_any impls taken from
josuttis/jthread and appleCompat.h taken from Citra and modified by me.
This commit is contained in:
sguo35
2022-03-27 22:51:46 -07:00
parent 4ff304e75b
commit 7eaf96eda4
58 changed files with 1376 additions and 9 deletions

3
.gitmodules vendored
View File

@@ -43,3 +43,6 @@
[submodule "externals/ffmpeg/ffmpeg"]
path = externals/ffmpeg/ffmpeg
url = https://git.ffmpeg.org/ffmpeg.git
[submodule "externals/range-v3"]
path = externals/range-v3
url = https://github.com/ericniebler/range-v3.git