The test TestCgoSignalDeadlock runs the go command itself to build
another program, then runs that program. When you use -x you are
seeing the way that the runtime test itself is built; that test is not
expected to use cgo or build runtime/cgo. That isn't showing you
anything about the commands that the test uses to build the program it
is going to run. The easiest way to see those commands will probably
be to edit buildTestProg in runtime/crash_test.go.
Ian