File tree Expand file tree Collapse file tree 3 files changed +22
-7
lines changed Expand file tree Collapse file tree 3 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 1+ // +build !darwin
2+
3+ package main
4+
5+ // commands used by the compilation process might have different file names on Linux than those used on macOS.
6+ var commands = map [string ]string {
7+ "ar" : "llvm-ar-7" ,
8+ "clang" : "clang-7" ,
9+ "ld.lld" : "ld.lld-7" ,
10+ "wasm-ld" : "wasm-ld-7" ,
11+ }
Original file line number Diff line number Diff line change 1+ // +build darwin
2+
3+ package main
4+
5+ // commands used by the compilation process might have different file names on macOS than those used on Linux.
6+ var commands = map [string ]string {
7+ "ar" : "llvm-ar" ,
8+ "clang" : "clang-7" ,
9+ "ld.lld" : "ld.lld-7" ,
10+ "wasm-ld" : "wasm-ld-7" ,
11+ }
Original file line number Diff line number Diff line change @@ -21,13 +21,6 @@ import (
2121 "github.com/tinygo-org/tinygo/loader"
2222)
2323
24- var commands = map [string ]string {
25- "ar" : "llvm-ar" ,
26- "clang" : "clang-7" ,
27- "ld.lld" : "ld.lld-7" ,
28- "wasm-ld" : "wasm-ld-7" ,
29- }
30-
3124// commandError is an error type to wrap os/exec.Command errors. This provides
3225// some more information regarding what went wrong while running a command.
3326type commandError struct {
You can’t perform that action at this time.
0 commit comments