On Sat, Apr 9, 2022 at 8:28 PM Balamurugan Marimuthu <balamu...@gmail.com> wrote: > > I see I can invoke the following and see the steps 'go build' is doing. > > % go build -work -x mypackage.go 1> transcript.txt 2>&1 > > I struggle to understand how can I load my custom pass created as a shared > library? > > I was looking for something like this which is done with Clang: > clang -Xclang -load -Xclang build/skeleton/libSkeletonPass.* something.c > > Is my understanding correct? Any help/pointers will be really helpful.
Perhaps you are looking for something like go build -gccgoflags="-Xclang -load -Xclang build/skeleton/libSkeletonPass.*" Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcWC-cJfEa%3D9vR6kdqCFZ4xCC2fcoo-Q0_UJjZ_O%2BCYbVQ%40mail.gmail.com.