Files
wehub-resource-sync 5357c39144
Fuzzer / Run Fuzzer (push) Has been cancelled
Race tests / Go race tests (ubuntu-22.04) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:01:40 +08:00

20 lines
598 B
Bash
Executable File

#!/bin/bash
# This script is intended for usage on Unix-based systems.
# For Windows users, please use the .bat file instead.
LOGLEVEL=1
# Compiles "$1" (golang pkg) with escape-analysis logging
# -m turns on logging with level=$LOGLEVEL
# -N disables optimizations
# -l disables inlining
#
# To configure this script as a Goland annotation generator,
# add a File Watcher (Preferences > Tools > File Watchers).
# See "goland-file-watcher-config.png" for config info.
#
go build -gcflags="-m=$LOGLEVEL -N -l" "$1" 2>&1 >/dev/null \
| sed '/does not escape/d' \
| sort | uniq