Skip to content

Commit c8bb89d

Browse files
committed
Remove use_pch option.
Exists as meson builtin `b_pch` (also did before, why did we do this instead???). Empty pch is no longer supported.
1 parent 2906eb8 commit c8bb89d

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

Source/meson.build

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
2-
if use_pch
3-
pch = meson.current_source_dir()/'System/StandardIncludes.h'
4-
else
5-
pch = ''
6-
endif
1+
pch = meson.current_source_dir()/'System/StandardIncludes.h'
72
sources = []
83
source_libs = []
94
source_inc_dirs += [include_directories(

meson.build

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,6 @@ if get_option('debug') and get_option('b_lto')
2626
warning('Link time optimization enabled in debug mode, debug symbols may not be fully available. Disable b_lto with "meson configure -Db_lto=false".')
2727
endif
2828

29-
use_pch = get_option('use_pch').enabled()
30-
31-
if get_option('use_pch').auto()
32-
ccache = find_program('ccache', required : false)
33-
if ccache.found()
34-
message('Detected ccache, disabling precompiled headers')
35-
use_pch = false
36-
else
37-
message('Using precompiled headers')
38-
use_pch = true
39-
endif
40-
endif
41-
4229
if compiler.get_argument_syntax()== 'gcc' # used for gcc compatible compilers
4330
# Build against system libraries on linux
4431
message('gcc detected')

meson_options.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,3 @@ option('tracy_enable', type: 'boolean', value: true, description: 'Enable Tracy
1616
option('tracy_callstack', type : 'integer', value : 0, description : 'Enfore callstack collection for tracy regions')
1717
option('tracy_on_demand', type : 'boolean', value : true, description : 'On-demand profiling')
1818
option('tracy_debuginfod', type : 'boolean', value : false, description : 'Enable debuginfod support')
19-
20-
option('use_pch', type : 'feature', value : 'auto')

0 commit comments

Comments
 (0)