diff --git a/src/tools/cw.jam b/src/tools/cw.jam index 3b0a4ba71..f9048ee88 100644 --- a/src/tools/cw.jam +++ b/src/tools/cw.jam @@ -78,6 +78,22 @@ rule init ( version ? : command * : options * ) flags cw.compile .CC $(condition) : $(prefix)$(compiler) ; flags cw.link .LD $(condition) : $(prefix)$(linker) ; flags cw.archive .LD $(condition) : $(prefix)$(linker) ; + + if [ MATCH ^([89]\\.) : $(version) ] + { + if [ os.name ] = NT + { + # The runtime libraries + flags cw.compile CFLAGS static/single/off : -runtime ss ; + flags cw.compile CFLAGS static/single/on : -runtime ssd ; + + flags cw.compile CFLAGS static/multi/off : -runtime sm ; + flags cw.compile CFLAGS static/multi/on : -runtime smd ; + + flags cw.compile CFLAGS shared/off : -runtime dm ; + flags cw.compile CFLAGS shared/on : -runtime dmd ; + } + } } rule default-paths ( version ? ) # FIXME @@ -100,6 +116,9 @@ rule default-paths ( version ? ) # FIXME return $(possible-paths) ; } + + + ## declare generators generators.register-c-compiler cw.compile.c++ : CPP : OBJ : cw ;