Skip to content

Commit

Permalink
C: Run C.Toolchain automatically if C.TOOLCHAIN is specified on the c…
Browse files Browse the repository at this point in the history
…ommand-line
  • Loading branch information
jjensen committed Feb 6, 2017
1 parent 2f7b114 commit 797095f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions bin/Jambase.jam
Expand Up @@ -863,6 +863,12 @@ rule WorkspaceConfig WORKSPACE_NAME : CONFIG_NAME : ACTUAL_CONFIG_NAME : COMMAND
C.CONFIG ?= $(CONFIG) ;
C.PLATFORM ?= $(PLATFORM) ;
C.COMPILER ?= $(COMPILER) ;

C.TOOLCHAIN ?= $(c.toolchain) ;
if $(C.TOOLCHAIN)
{
C ;
}
}

JAMFILE.LUA ?= Jamfile.lua ;
Expand Down
2 changes: 1 addition & 1 deletion bin/modules/c.jam
Expand Up @@ -41,7 +41,7 @@ rule C.ActiveTarget TARGET {
# C.ACTIVE_TOOLCHAIN_* = <win32/debug>C.*
C.ACTIVE_TOOLCHAIN_* = @(C.*:G=$(C.ACTIVE_TOOLCHAIN_GRIST)) ;

if ! $(ALL_SUBDIR_TOKENS) {
if ! $(ALL_SUBDIR_TOKENS) && $(TARGET) != C.* {
SubDir TOP ;
}

Expand Down
5 changes: 4 additions & 1 deletion bin/scripts/DumpJamTargetInfo.jam
@@ -1,4 +1,7 @@
C ;
if ! [ RuleExists C.Toolchain ]
{
C ;
}

JAM_MODULES_PATH += $(JAMFILE_ROOT) ;

Expand Down

0 comments on commit 797095f

Please sign in to comment.