summaryrefslogtreecommitdiff
path: root/solenv/gbuild/gbuild.mk
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2018-09-05 11:19:22 +0300
committerTor Lillqvist <tml@iki.fi>2018-09-05 11:21:26 +0300
commit1d6d1eef3a6c3c14ea88eeeadb0119624bfa8056 (patch)
tree169fd6a1cde36291cb042c683b2cc1ecdb65ab53 /solenv/gbuild/gbuild.mk
parente3bac83bec762db924149f710f1ba437e0c94582 (diff)
Workaround for file name case inconsistency
Change-Id: Ia13dc01f86e51064658d5ad9a996c6bd555cbeef
Diffstat (limited to 'solenv/gbuild/gbuild.mk')
-rw-r--r--solenv/gbuild/gbuild.mk14
1 files changed, 13 insertions, 1 deletions
diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk
index 522183ed9ffc..f072736f9c17 100644
--- a/solenv/gbuild/gbuild.mk
+++ b/solenv/gbuild/gbuild.mk
@@ -166,7 +166,19 @@ $(eval $(call gb_Helper_collect_knownlibs))
gb_Library_DLLPOSTFIX := lo
# Include platform/cpu/compiler specific config/definitions
-include $(GBUILDDIR)/platform/$(OS)_$(CPUNAME)_$(COM).mk
+
+# Work around inconsistency in case of $(OS) being "IOS" (all
+# upper-case) vs. the file being included here having the name
+# iOS_*_*.mk (lower-case 'i'). This went unnoticed until now when I
+# happen to build for iOS on a case-sensitive file system.
+
+ifeq ($(OS),IOS)
+gbuildplatformosname=iOS
+else
+gbuildplatformosname=$(OS)
+endif
+
+include $(GBUILDDIR)/platform/$(gbuildplatformosname)_$(CPUNAME)_$(COM).mk
# this is optional
include $(SRCDIR)/RepositoryFixes.mk