diff options
Diffstat (limited to 'compileopts')
-rw-r--r-- | compileopts/target.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compileopts/target.go b/compileopts/target.go index ab9f871f3..b5df5b911 100644 --- a/compileopts/target.go +++ b/compileopts/target.go @@ -391,7 +391,8 @@ func defaultTarget(options *Options) (*TargetSpec, error) { ) spec.ExtraFiles = append(spec.ExtraFiles, "src/runtime/os_darwin.c", - "src/runtime/runtime_unix.c") + "src/runtime/runtime_unix.c", + "src/runtime/signal.c") case "linux": spec.Linker = "ld.lld" spec.RTLib = "compiler-rt" @@ -412,7 +413,8 @@ func defaultTarget(options *Options) (*TargetSpec, error) { spec.CFlags = append(spec.CFlags, "-mno-outline-atomics") } spec.ExtraFiles = append(spec.ExtraFiles, - "src/runtime/runtime_unix.c") + "src/runtime/runtime_unix.c", + "src/runtime/signal.c") case "windows": spec.Linker = "ld.lld" spec.Libc = "mingw-w64" |