diff options
| author | Anton Lindqvist <anton@basename.se> | 2018-11-17 19:32:19 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-11-17 10:32:19 -0800 |
| commit | 1508cc9c44358f1eaf1a53988c6f7c8b6c0dd7ee (patch) | |
| tree | daec295076e15ad16bdbb35170e6e779fc066a10 /pkg/csource/common.go | |
| parent | b08ee62aecfa850eac53b4dd903299d32b5c567d (diff) | |
pkg/csource: add support for creating reproducers on OpenBSD
Diffstat (limited to 'pkg/csource/common.go')
| -rw-r--r-- | pkg/csource/common.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/csource/common.go b/pkg/csource/common.go index 80ce02ef6..9de387952 100644 --- a/pkg/csource/common.go +++ b/pkg/csource/common.go @@ -27,7 +27,8 @@ const ( func createCommonHeader(p, mmapProg *prog.Prog, replacements map[string]string, opts Options) ([]byte, error) { defines := defineList(p, mmapProg, opts) - cmd := osutil.Command("cpp", "-nostdinc", "-undef", "-fdirectives-only", "-dDI", "-E", "-P", "-") + sysTarget := targets.Get(p.Target.OS, p.Target.Arch) + cmd := osutil.Command(sysTarget.CPP, "-nostdinc", "-undef", "-fdirectives-only", "-dDI", "-E", "-P", "-") for _, def := range defines { cmd.Args = append(cmd.Args, "-D"+def) } |
