diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-04-23 02:24:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 11:24:09 +0200 |
commit | 66db9de714be7c2f4cf1f2fb0a0a99145baf6acb (patch) | |
tree | 8675842299fe22ad237b06bb923a880789c9faa4 /doc | |
parent | 5c534b2943145106db99212fb9bb75fde289b6f5 (diff) | |
download | Nim-66db9de714be7c2f4cf1f2fb0a0a99145baf6acb.tar.gz |
CT sizeof(+friends) for {.importc, completeStruct.} types, enable ABI static checks (#13926)
* -d:checkabi obsolete (ABI check now enforced); add `addTypeHeader` helper * cleanups * import sizeof at CT for {.completeType.} * address comments; revert default enabling of -d:checkAbi for now * mimportc_size_check.nim => msizeof5.nim; merge mabi_check.nim into msizeof5.nim; refactor * all pragmas in errmsgs should be written: '.importc' (un-ambiguous and less verbose than {.importc.})
Diffstat (limited to 'doc')
-rw-r--r-- | doc/nimc.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/nimc.rst b/doc/nimc.rst index 138f1e7f0..7fdceacf5 100644 --- a/doc/nimc.rst +++ b/doc/nimc.rst @@ -438,9 +438,8 @@ Define Effect ``memProfiler`` Enables memory profiling for the native GC. ``uClibc`` Use uClibc instead of libc. (Relevant for Unix-like OSes) ``checkAbi`` When using types from C headers, add checks that compare - what's in the Nim file with what's in the C header - (requires a C compiler with _Static_assert support, like - any C11 compiler) + what's in the Nim file with what's in the C header. + This may become enabled by default in the future. ``tempDir`` This symbol takes a string as its value, like ``--define:tempDir:/some/temp/path`` to override the temporary directory returned by ``os.getTempDir()``. |