Skip to content

Commit

Permalink
C: Add C.GetActiveToolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
jjensen committed Feb 6, 2017
1 parent 980c6d8 commit 432ba2f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
4 changes: 4 additions & 0 deletions bin/modules/c.jam
Expand Up @@ -1773,6 +1773,10 @@ rule C.Toolchain TOOLCHAIN_SPEC {
}


rule C.GetActiveToolchain {
return $(C.ACTIVE_TOOLCHAIN_SPEC) ;
}

########################################################################
########################################################################

Expand Down
8 changes: 7 additions & 1 deletion docs/html/module_c.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 21 additions & 1 deletion docs/module_c.dox
Expand Up @@ -28,6 +28,7 @@ Support for more than one toolchain used during the same Jam execution is provid
\refitem rule_C_ForceFileType C.ForceFileType
\refitem rule_C_ForceInclude C.ForceInclude
\refitem rule_C_ForcePublic C.ForcePublic
\refitem rule_C_GetActiveToolchain C.GetActiveToolchain
\refitem rule_C_GetArchitecture C.GetArchitecture
\refitem rule_C_GetLinkTargets C.GetLinkTargets
\refitem rule_C_GristTarget C.GristTarget
Expand Down Expand Up @@ -522,14 +523,33 @@ When it is not possible to save off the result when calling the \c C.Application



<hr>
\section rule_C_GetActiveToolchain rule C.GetActiveToolchain
\addindex rule_C_GetActiveToolchain

\return Returns the active toolchain.

\code
local saveActiveToolchain = [ C.GetActiveToolchain ] ;
local toolchainsUsed = [ BuildSimple $(saveActiveToolchain)@C.ARCHITECTURE=arm64 ] ;
toolchainsUsed += [ BuildSimple $(saveActiveToolchain)@C.ARCHITECTURE=armv7 ] ;
C.Toolchain $(saveActiveToolchain) ;
\endcode







<hr>
\section rule_C_GristFiles rule C.GristFiles TARGET : FILES
\addindex rule_C_GristFiles

Grists the passed in \c FILES against \c TARGET and returns them to the user in the form: <tt>\<win32/debug:TARGET\>FILES</tt>

\param TARGET The target to grist. May be <tt>*</tt>.
\param FILES The list of files to apply the target grist tot.
\param FILES The list of files to apply the target grist to.
\return Returns the gristed \c FILES.

\code
Expand Down

0 comments on commit 432ba2f

Please sign in to comment.