Closed nicmcd closed 4 years ago
Use "--features=thinlto"
why not put it in the BUILD file so it's used by default?
That would be a .bazelrc file and yes that could be added.
oh. It can't be set via the features
attribute of a BUILD rule?
It probably could, but why? I don't think we'd want to mandate a feature. You don't want to use LTO if you are just trying to get something to quick compile.
Previously, when SuperSim used basic makefiles, link time optimization (LTO) was shown to provide significant execution speedup. The -flto flag was used. See here: https://github.com/ssnetsim/supersim/blob/12110bdeadc77eec91f6bdc49508c3cd4c5703ff/Makefile#L48
After converting to Bazel, LTO has been unsuccessful to build. Fix it.