diff options
author | 2022-05-02 14:05:18 +0100 | |
---|---|---|
committer | 2022-05-02 15:05:18 +0200 | |
commit | b56dae8120d43b9acd3d3ed4d40100ffab7b972a (patch) | |
tree | d55d30589d8a8499ed3d5eecba163abc9fa78c27 /vendor/modernc.org/ccgo/v3/lib/ccgo.go | |
parent | add extra indexes as a migration (#527) (diff) | |
download | gotosocial-b56dae8120d43b9acd3d3ed4d40100ffab7b972a.tar.xz |
[chore] Update all but bun libraries (#526)
* update all but bun libraries
Signed-off-by: kim <grufwub@gmail.com>
* remove my personal build script changes
Signed-off-by: kim <grufwub@gmail.com>
Diffstat (limited to 'vendor/modernc.org/ccgo/v3/lib/ccgo.go')
-rw-r--r-- | vendor/modernc.org/ccgo/v3/lib/ccgo.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/modernc.org/ccgo/v3/lib/ccgo.go b/vendor/modernc.org/ccgo/v3/lib/ccgo.go index 38882b7af..a2efca3e0 100644 --- a/vendor/modernc.org/ccgo/v3/lib/ccgo.go +++ b/vendor/modernc.org/ccgo/v3/lib/ccgo.go @@ -1507,14 +1507,16 @@ out: cmd = exec.Command(command[0], command[1:]...) parser = makeXParser2 case "windows": - if command[0] != "make" { + if command[0] != "make" && command[0] != "make.exe" { return fmt.Errorf("usupported build command: %s", command[0]) } switch s := runtime.GOOS; s { case "windows": argv := append([]string{"-d"}, command[1:]...) - command[0] += ".exe" + if !strings.HasSuffix(command[0], ".exe") { + command[0] += ".exe" + } cmd = exec.Command(command[0], argv...) parser = makeDParser break out |