Commit a60f4e8c authored by Logan Chien's avatar Logan Chien Committed by Logan Chien
Browse files

[ndk] Add -disable-global-ctor-const-promotion option.

The global variable optimization will try to evaluate the
constant global variable and remove the constructors.

However, some legacy code will try to perform const_cast<>()
and assign to the "constant" to avoid static initialization
order fiasco.  To workaround those old code, this commit
adds a new option to disable the promotion of the global
constant with constructors.
parent df820bfd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment