Backed out changeset 0c01a856e4c3 (bug 1870427) as requested by Emilio CLOSED TREE
[gecko.git] / taskcluster / scripts / misc / build-mozmake.sh
blob79d77c1a2f47b8592a533805ffd37b58516a76ab
1 #!/bin/bash
2 set -x -e -v
4 . $GECKO_PATH/taskcluster/scripts/misc/vs-setup.sh
6 cd $MOZ_FETCHES_DIR/make
8 chmod +w src/config.h.W32
9 sed "/#define BATCH_MODE_ONLY_SHELL/s/\/\*\(.*\)\*\//\1/" src/config.h.W32 > src/config.h
10 make -f Basic.mk \
11 MAKE_HOST=Windows32 \
12 MKDIR.cmd='mkdir -p $1' \
13 RM.cmd='rm -f $1' \
14 CP.cmd='cp $1 $2' \
15 msvc_CC="$MOZ_FETCHES_DIR/clang/bin/clang-cl -Xclang -ivfsoverlay -Xclang $MOZ_FETCHES_DIR/vs/overlay.yaml" \
16 msvc_LD=$MOZ_FETCHES_DIR/clang/bin/lld-link
18 mkdir mozmake
19 cp WinRel/gnumake.exe mozmake/mozmake.exe
21 tar -acvf mozmake.tar.zst mozmake
22 mkdir -p $UPLOAD_DIR
23 cp mozmake.tar.zst $UPLOAD_DIR