سؤال

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 would 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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top