-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: more robust handling of contract checking mode
When linking against the contract checking and enforcement library `asap-contract` (https://github.com/asap-projects/asap-contract), it is possible to control the contract checking mode by passing a value for the `CONTRACTS` option when adding any type of target with `asap_add_xxx` API (e.g. asap_add_library. asap_add_test, etc): * CONTRACTS OFF : set contract checking mode to OFF * CONTRACTS AUDIT : set contract checking mode to AUDIT * CONTRACTS DEFAULT : set contract checking mode to DEFAULT * CONTRACTS AUTO : set contract checking mode using as a first priority the value passed in the cmake option `OPTION_CONTRACT_MODE`. If none is present, automatically set the mode based on the build configuration. For Debug -> AUDIT, For Release and RelMinSize -> OFF, and for RelWithDebInfo -> DEFAULT. * CONTRACTS TESTING : indicates that contracts are being testing and the target needs to have full control on the contract checking mode. Nothing will be done here. The default setting is AUTO.
- Loading branch information
Showing
3 changed files
with
125 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters