diff options
author | Antoine Jacoutot <ajacoutot@openbsd.org> | 2019-03-12 19:03:54 +0100 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2019-03-13 06:35:58 +0000 |
commit | f7af1a628514d4f0ab061db449a30b3079f59834 (patch) | |
tree | 0bbc485efd2d10606c9e4a86bfa5643ad7051607 /mesonbuild/compilers/compilers.py | |
parent | 9409155d5a5721e2dd3484ccea2c953628eabe2c (diff) | |
download | meson-f7af1a628514d4f0ab061db449a30b3079f59834.zip meson-f7af1a628514d4f0ab061db449a30b3079f59834.tar.gz meson-f7af1a628514d4f0ab061db449a30b3079f59834.tar.bz2 |
compilers: -fsanitize is not supported on OpenBSD
OpenBSD doesn't have any support for the compiler sanitizers yet.
While this may change in the future, better fix test suite run in "failfast"
mode for now. This can be revisited once (if) we get support in the future.
* clang 7.0.1
$ make CFLAGS=-fsanitize=address foo
cc -fsanitize=address -o foo foo.c
cc: error: unsupported option '-fsanitize=address' for target 'amd64-unknown-openbsd6.5'
* gcc 4.2.1
*** Error 1 in /tmp (<sys.mk>:85 'foo')
$ make CC=gcc CFLAGS=-fsanitize=address foo
gcc -fsanitize=address -o foo foo.c
cc1: error: unrecognized command line option "-fsanitize=address"
* gcc 8.2.0
$ make CC=egcc CFLAGS=-fsanitize=address foo
egcc -fsanitize=address -o foo foo.c
ld: error: unable to find library -lasan
collect2: error: ld returned 1 exit status
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
0 files changed, 0 insertions, 0 deletions