ardi via llvm-dev
2016-Apr-10 07:58 UTC
[llvm-dev] Is it possible to build OpenMP without using /usr/bin/cc ? (this breaks my build)
I'm trying to build clang 3.8.0, with openmp support. When it arrives to building the openmp code, it tries to use /usr/bin/cc (why is that hardcoded?) and it of course completely breaks my build, as my /usr/bin/cc doesn't support C++11, and I'm building the llvm 3.8.0 tree with my own built clang 3.4.2. Can I tell llvm 3.8.0 to build openmp support honoring the CXX compiler specified in cmake options? How? Thanks a lot!
ardi via llvm-dev
2016-Apr-11 05:41 UTC
[llvm-dev] Is it possible to build OpenMP without using /usr/bin/cc ? (this breaks my build)
On Sun, Apr 10, 2016 at 9:58 AM, ardi <ardillasdelmonte at gmail.com> wrote:> I'm trying to build clang 3.8.0, with openmp support. When it arrives > to building the openmp code, it tries to use /usr/bin/cc (why is that > hardcoded?) and it of course completely breaks my build, as my > /usr/bin/cc doesn't support C++11, and I'm building the llvm 3.8.0 > tree with my own built clang 3.4.2. > > Can I tell llvm 3.8.0 to build openmp support honoring the CXX > compiler specified in cmake options?You can ignore this, my build script was wrongly configuring cmake setting CMAKE_CXX_COMPILER twice instead of setting CMAKE_C_COMPILER and CMAKE_CXX_COMPILER ("copy 'n' paste 'n' forget"-like typo) ardi