-
Notifications
You must be signed in to change notification settings - Fork 17
Future Build Flag Changes on AOSC OS #104
Comments
Interesting flags we may want to consider:
Some flags are for better debugging:
|
Also we now enable |
Previously we have many packages failed to be built because of PIE. I looked a little bit into our GCC specs, and found out that our And it turns out that GCC specs can be merged into one single file. My trial on this is successful. |
In c901619 we use
This means the (originally) parallel LTO process is downgraded to single-threaded, making the LTO process very slow. In addition,
If we do not alter packages, we may want to revert c901619 and force LTO to use as many cores as possible. |
For Rust packages, export RUSTFLAGS="-C target-feature=+sse3 -C no-integrated-as" LTO can be enabled too (theoretically), but there are limitations:
Rust binaries are by default PIEs on many platforms, so we can leave it as-is. |
Experimentally we want to enable the following two options in GCC configuration:
This also avoids GCC specs problems (hopefully). |
As @LionNatsu proposed, since some packages by default turn Nonetheless, we haven't figured out how to do this yet. |
This is a tracking issue for a list of operations related to compiler flags in the (near or distant) future.
*FLAGS
, and new flags additionFor flag addition, there are some new GCC flags that only apply to newer version of GCC, and hence need to wait for the upgrade of compiler.
If you have more idea, update the list.
The text was updated successfully, but these errors were encountered: