Fix single threaded build option with meson.

By default, was building with the opposite of what was provided.
This commit is contained in:
Calvin Rose 2019-10-05 20:35:11 -05:00
parent fede40f279
commit f780df0aa6
2 changed files with 3 additions and 2 deletions

View File

@ -52,7 +52,7 @@ conf.set_quoted('JANET_VERSION', meson.project_version())
# Use options
conf.set_quoted('JANET_BUILD', get_option('git_hash'))
conf.set('JANET_NO_NANBOX', not get_option('nanbox'))
conf.set('JANET_SINGLE_THREADED', not get_option('single_threaded'))
conf.set('JANET_SINGLE_THREADED', get_option('single_threaded'))
conf.set('JANET_NO_DYNAMIC_MODULES', not get_option('dynamic_modules'))
conf.set('JANET_NO_DOCSTRINGS', not get_option('docstrings'))
conf.set('JANET_NO_SOURCEMAPS', not get_option('sourcemaps'))

View File

@ -1358,7 +1358,8 @@
(def d (x :doc))
(print "\n\n"
(if d bind-type "")
(if-let [[path start end] sm] (string " " path " (" start ":" end ")\n") "")
(if-let [[path line col] sm]
(string " " path " on line " line ", column " col "\n") "")
(if (or d sm) "\n" "")
(if d (doc-format d) "no documentation found.")
"\n\n"))))