Add pragma line so that errors messages point to the actual
source files rather than to the concatenated gotsan.cpp.
Details
Details
- Reviewers
vitalybuka melver - Commits
- rGd9b6e32dd74c: tsan: add pragma line to buildgo.sh
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/lib/tsan/go/buildgo.sh | ||
---|---|---|
174 | If this ever grows, it'd be cleaner as: for F in $SRCS; do ( echo "#line 1 \"$F\"" ... other stuff ... cat $F ) >> $DIR/gotsan.cpp done As-is, this would just save you typing $DIR/gotsan.cpp twice. |
compiler-rt/lib/tsan/go/buildgo.sh | ||
---|---|---|
174 | # not needed rm -f $DIR/gotsan.cpp for F in $SRCS; do echo "#line 1 \"$F\"" cat $F done > $DIR/gotsan.cpp |
compiler-rt/lib/tsan/go/buildgo.sh | ||
---|---|---|
174 | Even better! Done. |
If this ever grows, it'd be cleaner as:
As-is, this would just save you typing $DIR/gotsan.cpp twice.