Skip to content

Commit 21b0eb0

Browse files
committed
Merge branch 'es/meson-configure-build-options-fix'
Build procedure updates. * es/meson-configure-build-options-fix: meson: reformat default options to workaround bug in `meson configure`
2 parents 80f49f2 + cddcee7 commit 21b0eb0

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

meson.build

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,12 @@ project('git', 'c',
215215
capture: true,
216216
check: true,
217217
).stdout().strip() : 'unknown',
218-
default_options: [
219-
# Git requires C99 with GNU extensions, which of course isn't supported by
220-
# MSVC. Funny enough, C99 doesn't work with MSVC either, as it has only
221-
# learned to define __STDC_VERSION__ with C11 and later. We thus require
222-
# GNU C99 and fall back to C11. Meson only learned to handle the fallback
223-
# with version 1.3.0, so on older versions we use GNU C99 unconditionally.
224-
'c_std=' + (meson.version().version_compare('>=1.3.0') ? 'gnu99,c11' : 'gnu99'),
225-
],
218+
# Git requires C99 with GNU extensions, which of course isn't supported by
219+
# MSVC. Funny enough, C99 doesn't work with MSVC either, as it has only
220+
# learned to define __STDC_VERSION__ with C11 and later. We thus require
221+
# GNU C99 and fall back to C11. Meson only learned to handle the fallback
222+
# with version 1.3.0, so on older versions we use GNU C99 unconditionally.
223+
default_options: meson.version().version_compare('>=1.3.0') ? ['c_std=gnu99,c11'] : ['c_std=gnu99'],
226224
)
227225

228226
fs = import('fs')

0 commit comments

Comments
 (0)