mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 01:12:13 +00:00
Handle runtime variants
[SVN r33825]
This commit is contained in:
@@ -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 <runtime-link>static/<threading>single/<runtime-debugging>off : -runtime ss ;
|
||||
flags cw.compile CFLAGS <runtime-link>static/<threading>single/<runtime-debugging>on : -runtime ssd ;
|
||||
|
||||
flags cw.compile CFLAGS <runtime-link>static/<threading>multi/<runtime-debugging>off : -runtime sm ;
|
||||
flags cw.compile CFLAGS <runtime-link>static/<threading>multi/<runtime-debugging>on : -runtime smd ;
|
||||
|
||||
flags cw.compile CFLAGS <runtime-link>shared/<runtime-debugging>off : -runtime dm ;
|
||||
flags cw.compile CFLAGS <runtime-link>shared/<runtime-debugging>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 : <toolset>cw ;
|
||||
|
||||
Reference in New Issue
Block a user