Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ast-exporter: use major, not full, version for clang resource dir #1075

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion c2rust-ast-exporter/src/AstExporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2735,7 +2735,7 @@ static std::vector<const char *> augment_argv(int argc, const char *argv[]) {
// the path to the tool (in this case, the binary running the AST Exporter).
SmallString<128> P("-extra-arg=-resource-dir=" CLANG_BIN_PATH);
llvm::sys::path::append(P, "..", Twine("lib") + CLANG_LIBDIR_SUFFIX,
"clang", CLANG_VERSION_STRING);
"clang", std::to_string(CLANG_VERSION_MAJOR));
std::string resource_dir = P.str().str();
char *resource_dir_cstr = new char[resource_dir.length() + 1];
strncpy(resource_dir_cstr, resource_dir.c_str(), resource_dir.length() + 1);
Expand Down
Loading