File tree 3 files changed +22
-7
lines changed 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 (
21
21
"github.com/tinygo-org/tinygo/loader"
22
22
)
23
23
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
-
31
24
// commandError is an error type to wrap os/exec.Command errors. This provides
32
25
// some more information regarding what went wrong while running a command.
33
26
type commandError struct {
You can’t perform that action at this time.
0 commit comments