[gjs/master.msvc: 2/3] build: Fix PCH on Visual Studio




commit 496229e50f7080c3a143085d711f152c00058663
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Jul 7 18:02:15 2021 +0800

    build: Fix PCH on Visual Studio
    
    In Meson's sources (scripts), it seems that when using GCC for PCH, no
    extra object files are involved, but for Visual Studio like, extra object
    files are involved, and there seems to be no clear-cut way in Meson to
    find out whether we are building source files with or without PCH enabled,
    so I think it would be best to just drop cpp_pch:... from the libgjs
    target, and leaving cpp_pch:... for the libgjs-jsapi and libgjs-internal
    targets intact.

 meson.build | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index b97ad9e3..9214a5fe 100644
--- a/meson.build
+++ b/meson.build
@@ -543,7 +543,6 @@ link_args += cxx.get_supported_link_arguments([
 
 libgjs = shared_library(meson.project_name(),
     sources: [ libgjs_private_sources, module_resource_srcs ],
-    cpp_pch: pch_headers,
     link_args: link_args, link_depends: [symbol_map, symbol_list],
     link_whole: libgjs_internal,
     dependencies: base_build_dep,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]