[gjs/master.msvc: 6/8] build: Disable PCH on Visual Studio as well
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/master.msvc: 6/8] build: Disable PCH on Visual Studio as well
- Date: Mon, 12 Jul 2021 02:34:49 +0000 (UTC)
commit a3566baeb4a88dd6cb29a9336d522644330f8c51
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Jul 7 18:02:15 2021 +0800
build: Disable PCH on Visual Studio as well
It seems that the support in Meson for precompiled headers for Visual
Studio is broken as well (build fails with a linker error where
gjs_pch.obj cannot be found), so disable PCH on Visual Studio until a
future Meson release fixes this issue.
meson.build | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 20e518b9..c09fe1e2 100644
--- a/meson.build
+++ b/meson.build
@@ -497,9 +497,11 @@ if host_machine.system() == 'windows'
endif
pch_headers = ['gjs/gjs_pch.hh']
-if get_option('b_pch') and not meson.version().version_compare('>= 0.59.0')
- if cxx.get_id() == 'gcc'
- warning('Precompiled headers not supported with g++ and meson versions earlier than 0.59.0')
+if get_option('b_pch')
+ if (cxx.get_id() == 'gcc' and not \
+ meson.version().version_compare('>= 0.59.0')) or \
+ cxx.get_id() == 'msvc'
+ warning('Precompiled headers not supported with g++ and meson versions earlier than 0.59.0, nor with
Visual Studio')
pch_headers = []
endif
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]