Debug Build 的两种哲学:C++ 宏 vs Go 链接器注入

Posted on Tue 03 February 2026 in Journal • Tagged with C++, Go, build, debug, compilation, best-practices

从 C++ 的 -DDEBUG 宏到 Go 的 -ldflags -X,聊聊两种语言在"条件编译"上的不同哲学,以及 Go 独有的 Build Tags 玩法。


Continue reading