Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas Daede
Opus
Commits
2f37feb7
Verified
Commit
2f37feb7
authored
4 years ago
by
Marcus Asteborg
Committed by
Ralph Giles
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cmake - add option for fuzzing
Signed-off-by:
Ralph Giles
<
giles@thaumas.net
>
parent
b459e4ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+8
-0
8 additions, 0 deletions
CMakeLists.txt
with
8 additions
and
0 deletions
CMakeLists.txt
+
8
−
0
View file @
2f37feb7
...
...
@@ -63,6 +63,10 @@ set(OPUS_HARDENING_HELP_STR "run-time checks that are cheap and safe for use in
option
(
OPUS_HARDENING
${
OPUS_HARDENING_HELP_STR
}
ON
)
add_feature_info
(
OPUS_HARDENING OPUS_HARDENING
${
OPUS_HARDENING_HELP_STR
}
)
set
(
OPUS_FUZZING_HELP_STR
"causes the encoder to make random decisions (do not use in production)."
)
option
(
OPUS_FUZZING
${
OPUS_FUZZING_HELP_STR
}
OFF
)
add_feature_info
(
OPUS_FUZZING OPUS_FUZZING
${
OPUS_FUZZING_HELP_STR
}
)
set
(
OPUS_INSTALL_PKG_CONFIG_MODULE_HELP_STR
"install pkg-config module."
)
option
(
OPUS_INSTALL_PKG_CONFIG_MODULE
${
OPUS_INSTALL_PKG_CONFIG_MODULE_HELP_STR
}
ON
)
add_feature_info
(
OPUS_INSTALL_PKG_CONFIG_MODULE OPUS_INSTALL_PKG_CONFIG_MODULE
${
OPUS_INSTALL_PKG_CONFIG_MODULE_HELP_STR
}
)
...
...
@@ -281,6 +285,10 @@ if(OPUS_HARDENING)
target_compile_definitions
(
opus PRIVATE ENABLE_HARDENING
)
endif
()
if
(
OPUS_FUZZING
)
target_compile_definitions
(
opus PRIVATE FUZZING
)
endif
()
if
(
OPUS_VAR_ARRAYS
)
target_compile_definitions
(
opus PRIVATE VAR_ARRAYS
)
elseif
(
OPUS_USE_ALLOCA
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment