Menu

SyntaxProfile

Brad Lanam

Wiki Home
Syntax

Syntax: profile

profile <profile-name> { <statement-list> };

If profile-name is active, then the statements in statement-list will be executed. The profile is selected on the command line using the ‑‑profile argument.

If the compiler attribute is specified, then any variables that are set and any checks will be added to the compiler specific profile.

profile-name is usually a user defined name. mkc defined names are internal and default.

When a variable is used, mkc will check the profiles in the following order:

  • local variables (foreach, functions)
  • target / compiler
  • target
  • current-profile / compiler
  • current-profile
  • internal
Attributes

Wiki Home
Syntax


Related

Wiki: Home
Wiki: Syntax
Wiki: SyntaxAttrCompiler