Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ➜ build git:(master) ✗ brew install cmake llvm@7
- Updating Homebrew...
- ==> Auto-updated Homebrew!
- Updated 1 tap (homebrew/core).
- ==> New Formulae
- spirv-cross
- ==> Updated Formulae
- annie librsvg openconnect postgresql@9.5 postgresql@9.6 pyside qt
- Warning: cmake 3.13.4 is already installed and up-to-date
- To reinstall 3.13.4, run `brew reinstall cmake`
- Warning: llvm 7.0.1 is already installed and up-to-date
- To reinstall 7.0.1, run `brew reinstall llvm`
- ➜ build git:(master) ✗ brew outdated llvm@7 || brew upgrade llvm@7
- ➜ build git:(master) ✗ cmake .. -DCMAKE_PREFIX_PATH=/usr/local/opt/llvm@7/
- Configuring zig version 0.3.0+356cfa08
- -- Configuring done
- -- Generating done
- -- Build files have been written to: /Users/john.schmidt/repos/zig/build
- ➜ build git:(master) ✗ make install
- [ 0%] Built target embedded_blake
- [ 16%] Built target embedded_lld_lib
- [ 64%] Built target embedded_softfloat
- [ 68%] Built target embedded_lld_wasm
- [ 69%] Building CXX object CMakeFiles/zig_cpp.dir/src/zig_clang.cpp.o
- In file included from /Users/john.schmidt/repos/zig/src/zig_clang.cpp:35:
- /Users/john.schmidt/repos/zig/src/zig_clang.h:243:37: error: 'ZigClangSourceManager_getSpellingLoc' has C-linkage specified, but returns user-defined type 'clang::SourceLocation' which is incompatible with C
- [-Werror,-Wreturn-type-c-linkage]
- ZIG_EXTERN_C ZigClangSourceLocation ZigClangSourceManager_getSpellingLoc(const ZigClangSourceManager *,
- ^
- /Users/john.schmidt/repos/zig/src/zig_clang.cpp:147:81: error: static_assert with no message is a C++17 extension [-Werror,-Wc++17-extensions]
- static_assert(sizeof(ZigClangABISourceLocation) == sizeof(clang::SourceLocation));
- ^
- , ""
- 2 errors generated.
- make[2]: *** [CMakeFiles/zig_cpp.dir/src/zig_clang.cpp.o] Error 1
- make[1]: *** [CMakeFiles/zig_cpp.dir/all] Error 2
- make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement