Comments (5)
Why? Habit, and a lack of knowledge about Linux development.When I run the build scripts, I usually want a release version from which I can make a working distribution. If you can add this to the scripts, with an option to make the debug versions instead, feel free to do so.
from afdko.
Putting a -g then strip, is not the same as doing without -g - bugs in compiler and and strip aside. There are bugs in compilers from time to time where only the result with -g or without it works, and there are the occasional bugs with strip also, where applying strip actually cripples your binary. Those are side issues.
Anyway, the difference, in principle, is that if you do -g, you think there is a possibility the outcome might be broken and you intend to look into it. -g disables some optimizations which might make debugging impossible, as a general rule. Major inlin'ing, code re-arrangements, etc. So as a general rule, the resulting binary from -g then strip will still be slower than without -g. (assuming your compiler is working correctly in both cases).
That's why, depends on circumstances, you want to do both, or either.
from afdko.
Alternatively, in windows' land, it is routine to ship only "release" binaries, for exact this reason: to make running and poking into the binary with a debugger difficult or impossible. On the typical linux box, debug info are stripped, but stored externally, so obviously it is still possible.
from afdko.
In fact -g then strip is perhaps worse than either plain -g or without -g: you don't get a fully optimized binary, and you cannot debug with it either.
I'd say, if you have to choose one, make up your mind which is more important - fully speed or debugg'ability.
from afdko.
Fixed via #414
from afdko.
Related Issues (20)
- [otfstemhist] cannot specify glyphs via external glyph list
- [otfstemhist] -h reports unrelated options, wrong tool name HOT 1
- Unify format of external glyph names files across AFDKO tools
- [otfautohint/otfstemhist] Add tests
- use TTX tools to compile a otf file HOT 10
- [spot] alternate metrics ignored in class kern proof
- [otfautohint] (minor) outdated tool names
- [otfautohint] points “optimized away” in flex-like scenario (print only) HOT 15
- [tx] Crashing without error when using -decid option in -t1 mode
- Reordering of ligature substitution rules is considered harmful HOT 10
- [otfautohint] Mishinting of glyph? HOT 7
- [otfautohint] Consider adding flag to selectively skip overlap processing for some glyphs
- [makeotf] silently fails when GOADB has unexpected data
- [makeinstancesufo] & [checkoutlinesufo] multiprocessing vs progress bar, output improvement
- building fails on manjaro HOT 2
- [makeotf] substitution without target item does not fail HOT 8
- Pytest Error Encountered During AFDKO Compilation on Arch Linux HOT 6
- [checkoutlinesufo] XMLSyntaxError reading fontinfo.plist of temp UFO font HOT 3
- [makeotf] -r reports all unhinted glyphs individually HOT 1
- [buildmasterotfs] incompatible sources produced HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from afdko.