开发者

how to add a new compiler switch in bjam

开发者 https://www.devze.com 2023-03-02 10:08 出处:网络
I need to compile a library in managed c++ and looking into msvc.jam, I cannot find any feature that would add the /clr switch to my compile flags.

I need to compile a library in managed c++ and looking into msvc.jam, I cannot find any feature that would add the /clr switch to my compile flags.

How would I add such a feature? If possible, I woul开发者_运维问答d like to avoid modifying msvc.jam.


The makefile macro you want for compiler flags is CXXFLAGS, and its equivalent on the bjam command line is cxxflags (lower case):

bjam toolset=msvc cxxflags=/clr


Have you read this thread? I think it can help.

0

精彩评论

暂无评论...
验证码 换一张
取 消