Skip to content

Commit 612a8bd

Browse files
committed
clean libusb dir after installing:
Without this, when built sequentially, libusb was built with the wrong toolchain
1 parent 1018eeb commit 612a8bd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

DistTasks.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ tasks:
4545
./configure --with-pic --disable-udev --enable-static --disable-shared --host=i686-w64-mingw32 &&
4646
make -j"$(nproc)" &&
4747
make install &&
48+
make distclean &&
4849
cd .. &&
4950
BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}}.exe {{.LDFLAGS}}"
5051
BUILD_PLATFORM: "windows/386"
@@ -75,6 +76,7 @@ tasks:
7576
./configure --with-pic --disable-udev --enable-static --disable-shared --host=x86_64-w64-mingw32 &&
7677
make -j"$(nproc)" &&
7778
make install &&
79+
make distclean &&
7880
cd .. &&
7981
BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}}.exe {{.LDFLAGS}}"
8082
BUILD_PLATFORM: "windows/amd64"
@@ -105,6 +107,7 @@ tasks:
105107
CFLAGS=-m32 CXXFLAGS=-m32 ./configure --with-pic --disable-udev --enable-static --disable-shared --host=i386-linux-gnu &&
106108
make -j"$(nproc)" &&
107109
make install &&
110+
make distclean &&
108111
cd .. &&
109112
BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}}"
110113
BUILD_PLATFORM: "linux/386"
@@ -135,6 +138,7 @@ tasks:
135138
./configure --with-pic --disable-udev --enable-static --disable-shared &&
136139
make -j"$(nproc)" &&
137140
make install &&
141+
make distclean &&
138142
cd .. &&
139143
BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}}"
140144
BUILD_PLATFORM: "linux/amd64"
@@ -165,6 +169,7 @@ tasks:
165169
./configure --with-pic --disable-udev --enable-static --disable-shared --host=arm-linux-gnueabihf &&
166170
make -j"$(nproc)" &&
167171
make install &&
172+
make distclean &&
168173
cd .. &&
169174
BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}}"
170175
BUILD_PLATFORM: "linux/armv7"
@@ -195,6 +200,7 @@ tasks:
195200
./configure --with-pic --disable-udev --enable-static --disable-shared --host=arm-linux-gnueabi &&
196201
make -j"$(nproc)" &&
197202
make install &&
203+
make distclean &&
198204
cd .. &&
199205
BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}}"
200206
BUILD_PLATFORM: "linux/armv6"
@@ -225,6 +231,7 @@ tasks:
225231
./configure --with-pic --disable-udev --enable-static --disable-shared --host=aarch64-linux-gnu &&
226232
make -j"$(nproc)" &&
227233
make install &&
234+
make distclean &&
228235
cd .. &&
229236
BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}}"
230237
BUILD_PLATFORM: "linux/arm64"
@@ -255,6 +262,7 @@ tasks:
255262
./configure --with-pic --disable-udev --enable-static --disable-shared --host=x86_64-apple-darwin20.4 &&
256263
make -j"$(nproc)" &&
257264
make install &&
265+
make distclean &&
258266
cd .. &&
259267
BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}}"
260268
BUILD_PLATFORM: "darwin/amd64"
@@ -298,6 +306,7 @@ tasks:
298306
./configure --with-pic --disable-udev --enable-static --disable-shared --host=aarch64-apple-darwin20.4 &&
299307
make -j"$(nproc)" &&
300308
make install &&
309+
make distclean &&
301310
cd .. &&
302311
BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}}"
303312
BUILD_PLATFORM: "darwin/arm64"

0 commit comments

Comments
 (0)