How to remove compiler flag when building Boost
        Posted  
        
            by mlo
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by mlo
        
        
        
        Published on 2010-06-01T14:26:37Z
        Indexed on 
            2010/06/01
            19:43 UTC
        
        
        Read the original article
        Hit count: 215
        
boost
I need to build Boost with a non-standard set of flags (due to a conflict between Boost threading and C++/CLI). I'm adding the required flag (/clr) using CXXFLAGS, but this flag conflicts with the Boost default /EHs flag (/clr implies /EHa which is incompatible with /EHs), so that needs to be suppressed. Is there a mechanism like CXXFLAGS to suppress a default Boost flag or must I edit all of the compiler specification files by hand?
© Stack Overflow or respective owner