summaryrefslogtreecommitdiff
path: root/docs/markdown/Simd-module.md
diff options
context:
space:
mode:
authorMartin Garton <garton@gmail.com>2024-09-16 14:35:25 +0100
committerEli Schwartz <eschwartz93@gmail.com>2024-09-23 12:12:54 -0400
commit5102f436576b873ab5b2042179af9b1b824f0b39 (patch)
treef0014edb34eccc875d0a4807389f3880880cac21 /docs/markdown/Simd-module.md
parentb1abfa89d99146858df5988a39a324c48159cfa0 (diff)
downloadmeson-5102f436576b873ab5b2042179af9b1b824f0b39.tar.gz
Add a newline at the end of test files
When running in some settings, a C compiler may demand newlines at the end of each file. Instead of modifying everywhere that writes out test files to incorporate newlines in each indivudual string, simply add a newline when writing it out. Only add a newline to the end of the file if there isn't one already there. An examples of when this is a problem is running with `CC=clang` and `CFLAGS="--std=c99 -pedantic-errors"` and meson.build contains (for example) the following: ``` project('myproject', 'c') executable('myexecutable', 'main.c') cc = meson.get_compiler('c') sizeof_int = cc.sizeof('int') ``` sizeof_int will be -1, because the compile failed. The meson logs contain the error `testfile.c:7:10: error: no newline at end of file`
Diffstat (limited to 'docs/markdown/Simd-module.md')
0 files changed, 0 insertions, 0 deletions