-
Notifications
You must be signed in to change notification settings - Fork 165
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
fix: use c++ 17 #1202
fix: use c++ 17 #1202
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1202 +/- ##
==========================================
- Coverage 46.99% 46.93% -0.06%
==========================================
Files 176 177 +1
Lines 65196 65191 -5
==========================================
- Hits 30639 30599 -40
- Misses 34557 34592 +35 ☔ View full report in Codecov by Sentry. |
Thank you for your work on this! I'll merge this once I find time to review it. |
FWIW, it is working fine on my project. |
I'm not worried about the coverage failure personally - a decrease of |
This does not fix #1178 (regardless of whether or not |
Are you on MacOS? |
For what it's worth, this built successfully for me. (I have not explored further or tried to use it; not much bandwidth at the moment. But it does look like the fixes in this repo let it build.) I'm on macOS, for whatever that's worth.
|
Yes. 14.3. If I don't set |
The The problem with external harfbuzz probably needs to be figured out, though, but it's at least separate from #1178. I was just verifying that this PR does in fact close that issue that I opened. |
Well, no. I literally described the exact problems #1178 describes. Those still persist with winstxnhdw/master. |
Sorry, I must have misread your comment. I thought you were saying it didn't work without |
Strange. It’s fine on my end as well. Might want to check if it’s something else on your end. |
Right back atcha. From looking at things, I'm not sure how it's actually building for anyone. E.g. https://github.com/harfbuzz/harfbuzz/blob/main/src/harfbuzz.pc.in You can see here that pkg-config file for harfbuzz includes the harfbuzz directory (e.g. |
Can you show the actual error that you get if you run these lines?
|
Well, I have a Docker build that is able to build this successfully. If you can come up with a quick Dockerfile that exhibits your issue, we can look into it. |
There's no error because tectonic is not being use and as a result the linker doesn't bother resolving tectonic's symbols. If I invoke something from tectonic, the linker blows up with undefined symbols. This ended up being a conflict with another crate. If I enable the |
Right, this is about mac builds with the external-harfbuzz feature enabled. On a Linux system (e.g. docker) harfbuzz is probably being installed into a path that the compiler is already searching e.g. This pull request doesn't fix the problems described in #1178. |
If I use this use tectonic;
fn main() {
let latex = r#"
\documentclass{article}
\begin{document}
Hello, world!
\end{document}
"#;
let pdf_data: Vec<u8> = tectonic::latex_to_pdf(latex).expect("processing failed");
println!("Output PDF size is {} bytes", pdf_data.len());
}
Running through cargo also needs the environment variable:
But the created executable runs just fine:
|
Upon review, this looks good to me. I'm not able to speak to the PKG_CONFIG failures right now, but the changes in this are at least necessary to fix some issues, and this is a good prerequisite for #1209. As such, I'm going to merge, but feel free to re-open any issues that appear to still occur. |
f392f76
into
tectonic-typesetting:master
Closes #1190
Closes #1184
Closes #1178