@@ -72,20 +72,21 @@ jobs:
72
72
llvm_config_type="${{ matrix.build-type }}"
73
73
if [ "${{ runner.os }}" == "Windows" ]; then
74
74
llvm_runner_os="Windows"
75
- if [ "$llvm_config_type" == "Release" ]; then
76
- llvm_config_type="RelWithDebInfo"
77
- fi
75
+ # if [ "$llvm_config_type" == "Release" ]; then
76
+ # llvm_config_type="RelWithDebInfo"
77
+ # fi
78
78
llvm_archive_type="7z"
79
+ llvm_config_type="Release"
79
80
else
80
81
llvm_runner_os="Linux"
81
82
llvm_archive_type="tar.xz"
83
+ llvm_config_type="Release"
82
84
fi
83
- llvm_commit_id=731264b0
85
+ llvm_commit_id=29b20829
84
86
llvm_archive_filename="$llvm_runner_os-$llvm_config_type-$llvm_commit_id.$llvm_archive_type"
85
87
llvm_url="https://github.com/cppalliance/mrdox/releases/download/llvm-package-release/$llvm_archive_filename"
86
88
87
- release_url_exists=$(curl --head --silent --fail "$llvm_url")
88
- if [ -z "$release_url_exists" ]; then
89
+ if ! curl --head --silent --fail "$llvm_url"; then
89
90
llvm_url="https://mrdox.com/llvm+clang/$llvm_archive_filename"
90
91
fi
91
92
96
97
llvm_root="${{runner.tool_cache}}/llvm+clang"
97
98
llvm_root=$(echo "$llvm_root" | sed 's/\\/\//g')
98
99
mkdir -p "$llvm_root"
100
+
99
101
if [ "${{ runner.os }}" != "Windows" ]; then
100
102
tar -xvf "$llvm_archive_filename" -C "$llvm_root" --strip-components=1
101
103
else
@@ -104,12 +106,8 @@ jobs:
104
106
mv * "$llvm_root"
105
107
cd ..
106
108
rm -rf "$llvm_config_type"
107
-
108
- # Patch LLVMExports.cmake
109
- substring="C:/Program Files/Microsoft Visual Studio/2022/Community/DIA SDK/lib/amd64/diaguids.lib;"
110
- sed -i "s|$substring||g" "$llvm_root/lib/cmake/llvm/LLVMExports.cmake"
111
109
fi
112
-
110
+
113
111
# Export LLVM_ROOT
114
112
echo "llvm_root=$llvm_root"
115
113
echo -E "llvm-root=$llvm_root" >> $GITHUB_OUTPUT
0 commit comments