mirror of
https://github.com/janet-lang/janet
synced 2024-12-04 13:59:54 +00:00
Don't check for docstrings when explicitly disabled.
This commit is contained in:
parent
90018b35c0
commit
828e0a07cd
@ -4655,9 +4655,10 @@
|
|||||||
(put flat :doc nil))
|
(put flat :doc nil))
|
||||||
(when (boot/config :no-sourcemaps)
|
(when (boot/config :no-sourcemaps)
|
||||||
(put flat :source-map nil))
|
(put flat :source-map nil))
|
||||||
|
(unless (boot/config :no-docstrings)
|
||||||
(unless (v :private)
|
(unless (v :private)
|
||||||
(unless (v :doc)
|
(unless (v :doc)
|
||||||
(errorf "no docs: %v %p" k v))) # make sure we have docs
|
(errorf "no docs: %v %p" k v)))) # make sure we have docs
|
||||||
# Fix directory separators on windows to make image identical between windows and non-windows
|
# Fix directory separators on windows to make image identical between windows and non-windows
|
||||||
(when-let [sm (get flat :source-map)]
|
(when-let [sm (get flat :source-map)]
|
||||||
(put flat :source-map [(string/replace-all "\\" "/" (sm 0)) (sm 1) (sm 2)]))
|
(put flat :source-map [(string/replace-all "\\" "/" (sm 0)) (sm 1) (sm 2)]))
|
||||||
|
Loading…
Reference in New Issue
Block a user