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

Prohibit C99 VLA usage in runtime code #7005

Merged
merged 2 commits into from
Sep 10, 2022
Merged

Prohibit C99 VLA usage in runtime code #7005

merged 2 commits into from
Sep 10, 2022

Conversation

steven-johnson
Copy link
Contributor

AFAICT we aren't doing this in Halide at present, but some experimental code in Google runtime was doing so; this caused some issues with some experimental Clang patches, but also was never really intended to be used in the first place. Adding the flag here to be sure no unintended use creeps back in.

While I was there, took the time to ensure that the flags for runtime are unified across CMake and Make.

AFAICT we aren't doing this in Halide at present, but some experimental code in Google runtime was doing so; this caused some issues with some experimental Clang patches, but also was never really intended to be used in the first place. Adding the flag here to be sure no unintended use creeps back in.

While I was there, took the time to ensure that the flags for runtime are unified across CMake and Make.
Makefile Outdated Show resolved Hide resolved
src/runtime/CMakeLists.txt Outdated Show resolved Hide resolved
@steven-johnson steven-johnson merged commit a0a1d09 into main Sep 10, 2022
@steven-johnson steven-johnson deleted the srj/no-vla branch September 10, 2022 00:07
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
* Prohibit C99 VLA usage in runtime code

AFAICT we aren't doing this in Halide at present, but some experimental code in Google runtime was doing so; this caused some issues with some experimental Clang patches, but also was never really intended to be used in the first place. Adding the flag here to be sure no unintended use creeps back in.

While I was there, took the time to ensure that the flags for runtime are unified across CMake and Make.

* oops
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