summaryrefslogtreecommitdiffstats
path: root/tools/meson-build.sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fuzz: don't panic without a C++ compilerFrantisek Sumsal2023-11-151-1/+1
| | | | | | | meson's `cpp_args` option is defined only if it detects a C++ compiler, otherwise we get an error: ../test/fuzz/meson.build:56:28: ERROR: Tried to access unknown option 'cpp_args'.
* fuzz: pass -Dc_args=/-Dcpp_args= to fuzzer targetsFrantisek Sumsal2023-11-101-15/+14
| | | | | | | | | | | | | | | | | Prompted by #29972, because right now it's practically impossible to pass -fno-sanitize=function to the fuzzer targets without some extensive sed'ing. This splits both c_args and cpp_args to separate arguments for tools/meson-build.sh, because the other way would be to use `eval`, so the space-separated but quoted strings passed to these options are not split where they shouldn't, and I'd rather avoid using `eval` if possible. Also, this switches the positional arguments we pass to `meson setup`, as they were in incorrect order (docs say it should be buildir followed by sourcedir); meson is apparently clever enough to figure this out and switch the arguments around if necessary, so it didn't complain.
* tools: explicitly specify "setup" subcommandYu Watanabe2023-03-031-1/+1
| | | | As invoking meson without subcommand is deprecated since 0.64.0.
* tools: fix the file name that "meson setup" generatesYu Watanabe2023-03-031-1/+1
|
* Fix which(1) in meson-build.shнаб2022-05-231-1/+1
|
* tools: shellcheck-ify tool scriptsFrantisek Sumsal2021-09-301-2/+3
|
* tree-wide: add spdx header on all scripts and helpersZbigniew Jędrzejewski-Szmek2021-01-281-0/+1
| | | | | | Even though many of those scripts are very simple, it is easier to include the header than to try to say whether each of those files is trivial enough not to require one.
* meson: use same compilers to build fuzzersYu Watanabe2018-10-091-1/+3
|
* meson: check the existence of ninja.build for fuzzer testsYu Watanabe2018-07-231-1/+1
|
* oss-fuzz: Fallback to `ninja-build` when available (#8641)Filipe Brandenburger2018-04-041-1/+9
| | | | | The ninja binary is deployed as `ninja-build` in older distros such as RHEL 7/CentOS 7. Detect that and use `ninja-build` instead of `ninja` when it's available.
* Hook up oss-fuzz test cases as testsZbigniew Jędrzejewski-Szmek2018-01-271-0/+10
This is a bit painful because a separate build of systemd is necessary. The tests are guarded by tests!=false and slow-tests==true. Running them is not slow, but compilation certainly is. If this proves unwieldy, we can add a separate option controlling those builds later. The build for each sanitizer has its own directory, and we build all fuzzer tests there, and then pull them out one-by-one by linking into the target position as necessary. It would be nicer to just build the desired fuzzer, but we need to build the whole nested build as one unit. [I also tried making systemd and nested meson subproject. This would work nicely, but meson does not allow that because the nested target names are the same as the outer project names. If that is ever fixed, that would be the way to go.] v2: - make sure things still work if memory sanitizer is not available v3: - switch to syntax which works with meson 0.42.1 found in Ubuntu