summaryrefslogtreecommitdiff
path: root/solenv/gbuild/platform/com_MSC_class.mk
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-04-02 15:44:19 +0200
committerLuboš Luňák <l.lunak@collabora.com>2020-04-06 14:52:31 +0200
commit74a92e5e1168dcf497bfc94c25e51399ecd3cf4e (patch)
tree491170fe7c494bd7cdc59d49b4ac36c7138031d4 /solenv/gbuild/platform/com_MSC_class.mk
parent6c7d51643634a4a4111f673760567e10e48467d0 (diff)
use full path for the PCH .hxx file for MSC
Microsoft cl.exe actually doesn't care, but clang-cl without this complains that it cannot find the .hxx file for the PCH. Change-Id: Ic2db94f2323ddb884ea71e6ac6554cc0a5ab682a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91744 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'solenv/gbuild/platform/com_MSC_class.mk')
-rw-r--r--solenv/gbuild/platform/com_MSC_class.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/solenv/gbuild/platform/com_MSC_class.mk b/solenv/gbuild/platform/com_MSC_class.mk
index 66333804ab51..f72c2a55f16b 100644
--- a/solenv/gbuild/platform/com_MSC_class.mk
+++ b/solenv/gbuild/platform/com_MSC_class.mk
@@ -79,8 +79,9 @@ endef
# PrecompiledHeader class
-gb_PrecompiledHeader_get_enableflags = -Yu$(1).hxx \
- -FI$(1).hxx \
+gb_PrecompiledHeader_get_enableflags = \
+ -Yu$(SRCDIR)/$(3).hxx \
+ -FI$(SRCDIR)/$(3).hxx \
-Fp$(call gb_PrecompiledHeader_get_target,$(1),$(2)) \
$(gb_PCHWARNINGS)