clangupc / clang-upc

Clang UPC Front-End
https://clangupc.github.io/
Other
16 stars 5 forks source link

Build failures with recent clang #102

Closed PHHargrove closed 2 years ago

PHHargrove commented 5 years ago

With clang/clang++ from llvm-8.0 (and from Xcode 11) one cannot build clang-upc.

This was originally reported: here

The work-around is the following "1-liner" which renames the parameter in the three places the problem occurs:

sed -i.bak \
        -e "6270,6280 s/CodeGenFunction &CGF/&_/" \
        -e "6316,6326 s/CodeGenFunction &CGF/&_/" \
        -e "6395,6405 s/CodeGenFunction &CGF/&_/" \
        tools/clang-upc/lib/CodeGen/CGOpenMPRuntime.cpp

This may not work with every version of awk, but works on macOS and Linux.

PHHargrove commented 5 years ago

Proposed fix in PR #103

PHHargrove commented 2 years ago

PR #103 was merged at commit e6ed41c on Sep 24, 2019