Add llvm code model option in target definition

This commit is contained in:
Yannis Huber
2020-06-02 20:41:31 +02:00
committed by Ron Evans
parent 34e0961a79
commit 4a658b9082
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -276,6 +276,7 @@ func defaultTarget(goos, goarch, triple string) (*TargetSpec, error) {
GDB: "gdb",
PortReset: "false",
FlashMethod: "native",
CodeModel: "default",
}
if goos == "darwin" {
spec.LDFlags = append(spec.LDFlags, "-Wl,-dead_strip")