This is an archive of the discontinued LLVM Phabricator instance.

[openmp] [cmake] Use -std=gnu++11 to fix alloca() on NetBSD
ClosedPublic

Authored by mgorny on Dec 8 2018, 8:34 AM.

Details

Summary

Prefer using '-std=gnu++11' over '-std=c++11' when available, as NetBSD
exposes the correct alloca() implementation only with gnu* C/C++
standards.

Diff Detail

Repository
rL LLVM

Event Timeline

mgorny created this revision.Dec 8 2018, 8:34 AM
krytarowski accepted this revision.Dec 8 2018, 9:57 AM
This revision is now accepted and ready to land.Dec 8 2018, 9:57 AM
This revision was automatically updated to reflect the committed changes.