aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-29 00:02:22 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commitcc0f3bf97a5138e8c4f2e121f304eda7beac56a9 (patch)
tree4469465cfb323bf133b30be69089c5f2b38cdbfd /src
parent518407c80204dcaae91bb4afebea2355a589e595 (diff)
Add cygwin support
Diffstat (limited to 'src')
-rw-r--r--src/FileUtil.cpp2
-rw-r--r--src/main.cpp4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/FileUtil.cpp b/src/FileUtil.cpp
index d07a074..2a0b290 100644
--- a/src/FileUtil.cpp
+++ b/src/FileUtil.cpp
@@ -16,7 +16,7 @@
using namespace std;
-#if OS_TYPE != OS_TYPE_LINUX && OS_TYPE != OS_TYPE_APPLE && OS_TYPE != OS_TYPE_WINDOWS
+#if (OS_TYPE != OS_TYPE_LINUX && OS_TYPE != OS_TYPE_APPLE && OS_TYPE != OS_TYPE_WINDOWS) || defined(__CYGWIN__)
#define stat64 stat
#endif
diff --git a/src/main.cpp b/src/main.cpp
index 1265d3d..ab8cd59 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -101,6 +101,10 @@ using namespace std::chrono;
// TODO: If dependencies are using a version that is not within our dependency version range then ask the user if they still want to use the dependency (the closest matching dependency).
// Currently if dependency version does not match, build will always fail with no option to ignore version mismatch.
+// TODO: Move global lib dependencies into different directories depending on the target platform, because one system can be used
+// to build packages for the host platfrom and another platform by cross compilation. If cross compilation is used and a dependency is installed that is not compatible with the target platform then the dependency that fits the target platform wont be downloaded
+// since the dependency already exists locally (but for a different platform).
+
#if OS_FAMILY == OS_FAMILY_POSIX
#define fout std::cout
#define ferr std::cerr