4

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.

Eric Parayre
  • 43
  • 1
  • 3

2 Answers2

4

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
Ciaran Keating
  • 2,793
  • 21
  • 19
  • Thanks. Instead of using the command line, here's what I came up with: import feature ; feature.feature managed : off on : composite propagated link-incompatible ; feature.compose on : on /clr ; – Eric Parayre May 05 '11 at 02:41
  • Obviously you were willing to delve deeper into the build system and its documentation than I was. cxxflags worked for me, so I settled on that and then got out of there quickly before I broke anything! – Ciaran Keating May 06 '11 at 05:43
0

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

Community
  • 1
  • 1
beduin
  • 7,943
  • 3
  • 27
  • 24