当前位置:网站首页>clang: warning: argument unused during compilation: ‘-no-pie‘ [-Wunused-command-line-argument]

clang: warning: argument unused during compilation: ‘-no-pie‘ [-Wunused-command-line-argument]

2022-06-24 15:39:00 Acx7

mac Upper use golang Warning during compilation

clang: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument]

 Insert picture description here

Solution

mac Compiler default use clang, Need modification goenv, Execute the following command .

go env -w CC=clang
go env -w CXX=clang++
原网站

版权声明
本文为[Acx7]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206241321139536.html