Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cmd/goal/clerk.go
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,10 @@ var compileCmd = &cobra.Command{
}
}
if writeSourceMap {
mapname := fname + ".map"
if outname == stdoutFilenameValue {
reportErrorf("%s: %s", outname, "cannot print map to stdout")
}
mapname := outname + ".map"
pcblob, err := json.Marshal(sourceMap)
if err != nil {
reportErrorf("%s: %s", mapname, err)
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/e2e_subs/e2e-teal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ printf '\x02' | dd of=${TEMPDIR}/true2.lsig bs=1 seek=0 count=1 conv=notrunc
# we do this in place and clean up the file later.
${gcmd} clerk compile ${TEAL}/quine.teal -m
trap 'rm ${TEAL}/quine.teal.*' EXIT
if ! diff ${TEAL}/quine.map ${TEAL}/quine.teal.map; then
if ! diff ${TEAL}/quine.map ${TEAL}/quine.teal.tok.map; then
echo "produced source maps do not match"
exit 1
fi
Expand Down