Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use another variable to check if in oss-fuzz environment #3518

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

lum1n0us
Copy link
Collaborator

In order to pass a oss-fuzz build step check_build.

Previous HELPER is only for local test.

@@ -120,8 +120,11 @@ add_compile_options(-fsanitize=fuzzer)
add_link_options(-fsanitize=fuzzer)

# if not calling from oss-fuzz helper, enable all support sanitizers
# oss-fuzz always defines `HELPER=True`
if (NOT "$ENV{HELPER}" STREQUAL "True")
# oss-fuzz will defines FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION in CFLAGS and CXXFLAGS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had better defines -> define

In order to pass a oss-fuzz build step *check_build*.

Previous `HELPER` is only for local test.
Copy link
Contributor

@wenyongh wenyongh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wenyongh wenyongh merged commit 54b0e73 into bytecodealliance:main Jun 12, 2024
1 check passed
@lum1n0us lum1n0us deleted the fix/check_if_oss_fuzz branch November 20, 2024 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants