Bug 1890689 accumulate input in LargerReceiverBlockSizeThanDesiredBuffering GTest...
[gecko.git] / taskcluster / scripts / misc / build-gn-common.sh
blobb72d51df09b6a39fbc53aefc57ec93d69a15bc31
1 #!/bin/bash
2 set -e -v
4 # This is shared code for building GN.
5 cd $MOZ_FETCHES_DIR/gn
7 if test -n "$MAC_CROSS"; then
8 python3 build/gen.py --platform darwin --no-last-commit-position
9 else
10 python3 build/gen.py --no-last-commit-position
13 cat > out/last_commit_position.h <<EOF
14 #ifndef OUT_LAST_COMMIT_POSITION_H_
15 #define OUT_LAST_COMMIT_POSITION_H_
17 #define LAST_COMMIT_POSITION_NUM 0
18 #define LAST_COMMIT_POSITION "unknown"
20 #endif // OUT_LAST_COMMIT_POSITION_H_
21 EOF
23 ninja -C out -v
25 STAGE=gn
26 mkdir -p $UPLOAD_DIR $STAGE
28 # At this point, the resulting binary is at:
29 # $WORKSPACE/out/Release/gn
30 if test "$MAC_CROSS" = "" -a "$(uname)" = "Linux"; then
31 strip out/gn
33 cp out/gn $STAGE
35 tar -c $STAGE | python3 $GECKO_PATH/taskcluster/scripts/misc/zstdpy > gn.tar.zst
36 cp gn.tar.zst $UPLOAD_DIR