-
Notifications
You must be signed in to change notification settings - Fork 24
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
Override compiler options in sw.cpp #52
Comments
No, option passing to deep deps is in TODO list. Actually, sw has a way to do this, but I did not investigate UX questions - cli options etc. |
It's ok. :) More users' requests - more features. |
Just a random thought, not too familar with the project so this might not make sense
if (libtesseract.getBuildSettings().hasOption("TESSERACT_USE_AVX2")) {
libtesseract.CompileOptions.push_back("-arch:AVX2");
} |
Yes. The second part (code) is very correct and even exists in sw (and works and even more features there). The first part is what I called UX - the way how you pass that option through whole sw to the target package (org....libtesseract in your case). It is not done yet. It is one of the core features of sw that is not implemented yet (research part is almost done there). |
One more thing. What happens under the hood if you override something? (I'm not talking about disk space, because binaries later won't be built on your pc and will be downloaded like in usual package managers - securily of course and with check of gpg or any other signature. So no object files in this case. And when you explicitly ask for binary package with different options and there's no such binary on the web - package will be build on your system.) |
Sorry for being a pain, but is there any way to override options that are added in the projects sw.cpp from the command line?
For example, I don't want this
libtesseract.CompileOptions.push_back("-arch:AVX2");
Or is it designed to manually change sw.cpp if you need to change options?
The text was updated successfully, but these errors were encountered: