Skip to content

TheLartians/ios_std_alternatives

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Actions Status Actions Status Actions Status

ios_std_alternatives

C++17 is awesome, however some features, such as std::get are only available for recent iOS versions. This project adds alternative implementations to broken iOS types.

Run tests

cmake -H. -Bbuild -Dios_std_alternatives_ENABLE_TESTS=On
cmake --build build -j8
./build/tests/ios_std_alternatives_test

Compile tests for iOS 9.0

cmake -E env CXXFLAGS="-fno-aligned-allocation" cmake -H. -Bbuild-ios -G Xcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_DEPLOYMENT_TARGET=9.0 -DCMAKE_INSTALL_PREFIX=./build-ios/root -DCMAKE_IOS_INSTALL_COMBINED=YES -Dios_std_alternatives_ENABLE_TESTS=On
cmake --build build-ios --target install -j8