File tree 3 files changed +199
-186
lines changed
3 files changed +199
-186
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,16 @@ brew install cmake llvm
58
58
brew outdated llvm || brew upgrade llvm
59
59
mkdir build
60
60
cd build
61
- cmake .. -DCMAKE_PREFIX_PATH=$(brew --prefix llvm) -DZIG_PREFER_CLANG_CPP_DYLIB=ON
61
+ cmake .. -DCMAKE_PREFIX_PATH=$(brew --prefix llvm)
62
62
make install
63
63
```
64
64
65
+ You will now run into this issue:
66
+ [ homebrew and llvm 10 packages in apt.llvm.org are broken with undefined reference to getPollyPluginInfo] ( https://github.com/ziglang/zig/issues/4799 )
67
+
68
+ Please help upstream LLVM and Homebrew solve this issue, there is nothing Zig
69
+ can do about it. See that issue for a workaround you can do in the meantime.
70
+
65
71
##### Windows
66
72
67
73
See https://github.com/ziglang/zig/wiki/Building-Zig-on-Windows
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ find_path(CLANG_INCLUDE_DIRS NAMES clang/Frontend/ASTUnit.h
18
18
)
19
19
20
20
if (ZIG_PREFER_CLANG_CPP_DYLIB)
21
- find_library (CLANG_CPP_DYLIB
21
+ find_library (CLANG_LIBRARIES
22
22
NAMES
23
23
clang-cpp-10.0
24
24
clang-cpp100
@@ -31,9 +31,7 @@ if(ZIG_PREFER_CLANG_CPP_DYLIB)
31
31
)
32
32
endif ()
33
33
34
- if (CLANG_CPP_DYLIB)
35
- set (CLANG_LIBRARIES ${CLANG_CPP_DYLIB} )
36
- else ()
34
+ if (NOT CLANG_LIBRARIES)
37
35
macro (FIND_AND_ADD_CLANG_LIB _libname_)
38
36
string (TOUPPER ${_libname_} _prettylibname_)
39
37
find_library (CLANG_${_prettylibname_} _LIB NAMES ${_libname_}
You can’t perform that action at this time.
0 commit comments