mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
macOS: work around linking issues when building the app executable.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user