macOS: work around linking issues when building the app executable.

This commit is contained in:
Sasha Szpakowski
2022-12-30 00:01:10 -04:00
parent 6730d57f04
commit fc5b53a456
+5
View File
@@ -65,6 +65,11 @@ LOVE_EXPORT DWORD AmdPowerXpressRequestHighPerformance = 1;
#include <vector>
// Explicitly instantiate std::vector<std::string> to work around linker issues
// with libc++ when symbols are hidden-by-default.
// https://stackoverflow.com/a/48273604
template class std::vector<std::string>;
static void get_app_arguments(int argc, char **argv, int &new_argc, char **&new_argv)
{
std::vector<std::string> temp_argv;