Skip to content

Commit 3cdf765

Browse files
committed
Error whack-a-mole
1 parent 85bf027 commit 3cdf765

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ set_target_properties("${PROJECT_NAME}" PROPERTIES
8181
MACOSX_BUNDLE ON
8282
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_LIST_DIR}/source/Info.plist"
8383
XCODE_GENERATE_SCHEME ON
84+
INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE
85+
INTERPROCEDURAL_OPTIMIZATION_PROFILE TRUE
8486
)
8587
set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/source/wxmac.icns" PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
8688
if(APPLE)

source/globals.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <sys/stat.h>
99
#include <string>
1010
#include <filesystem>
11+
#include <vector>
1112

1213
//data file names
1314
static constexpr std::string_view projectsFile = "projects.txt";
@@ -20,6 +21,7 @@ struct wxWindow;
2021

2122
#if defined __APPLE__
2223
#include <pwd.h>
24+
#include <unistd.h>
2325
//the location to store application data
2426
static const std::filesystem::path datapath = std::filesystem::path(getpwuid(getuid())->pw_dir) / "Library/Application Support/UnityHubNative";
2527

@@ -67,6 +69,7 @@ struct wxWindow;
6769

6870
#elif defined __linux__
6971
#include <pwd.h>
72+
#include <unistd.h>
7073
static const std::filesystem::path datapath = std::filesystem::path(getpwuid(getuid())->pw_dir) / "UnityHubNative";
7174
static constexpr std::string_view null_device = ">/dev/null 2>&1";
7275

@@ -131,4 +134,4 @@ struct project {
131134
bool operator==(const project& other) const {
132135
return this->path == other.path;
133136
}
134-
};
137+
};

0 commit comments

Comments
 (0)