Open timotheecour opened 4 years ago
const nimHasImportcLet = compiles(block:
let foo {.nodecl, importc.}: cint) # xxx move, and replace with `nimVersionCT`
# pending bootstrap >= https://github.com/nim-lang/Nim/pull/14258, remove this
runnableExamples("-r:off")
requires nim >= 1.4.0 to work properly, eg:nim c main
gives: Error: undeclared identifier: 'bar'
for nim 1.2 (and bin/nim_csources_a8a5241f9475099c823cfe1a5e0ca4022ac201ff), but works with 1.4; this caused me to use a workaround (if false
) in https://github.com/nim-lang/Nim/pull/17468
proc foo*[T](a: T) =
runnableExamples("-r:off"):
bar()
discard
proc bar*() = discard
links
features needed during bootstrap
arguments in reply to: https://github.com/nim-lang/Nim/issues/16211#issuecomment-738337224
import {.all.}
(since https://github.com/nim-lang/Nim/pull/17706), requires >= 1.5.1cast[noSideEffect]
, otherwise stdlib can't use thosequerySetting(nimcacheDir)
<//>
needed until 1.0.0 IIRC ? => done via https://github.com/nim-lang/Nim/pull/17830