4 # This is shared code for building GN.
7 if test -n "$MAC_CROSS"; then
8 python3 build
/gen.py
--platform darwin
--no-last-commit-position
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_
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
35 tar -c $STAGE | python3
$GECKO_PATH/taskcluster
/scripts
/misc
/zstdpy
> gn.
tar.zst
36 cp gn.
tar.zst
$UPLOAD_DIR