granatam

Results issues of granatam

`rules_go` currently passes `-ffile-prefix-map` to the C/C++ compiler without checking whether the selected toolchain supports it: https://github.com/bazel-contrib/rules_go/blob/caa2ca58cb8f1305a77eff41540441cdaf954e48/go/tools/builders/cgo2.go#L429-L441 This causes builds with older compiler toolchains (older than Clang 10 and GCC...

Clang CFI sanitizer options are incompatible with the compiler invocations performed internally by `cgo`. `cgo` appends `-fno-lto` to its compiler command: https://github.com/golang/go/blob/224934336832d84eedcf168ae633e376a5decb22/src/cmd/cgo/gcc.go#L1840-L1841 However, Clang's CFI sanitizers require LTO (`-flto` or...