It’s probably debatable if we support targets like iOS, but for now, document why we are checking for this standard library feature.
Trying to use std::system
for a aarch64-darwin-ios
target results in:
0test.cpp:7:10: error: 'system' is unavailable: not available on iOS
1 7 | std::system("some_command");
2 | ^
3/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdlib.h:203:6: note: 'system' has been explicitly marked unavailable here
4 203 | int system(const char *) __DARWIN_ALIAS_C(system);
5 | ^
61 error generated.