onnxruntime: enable lto

This commit is contained in:
Jonathan Ringer 2020-07-15 11:46:03 -07:00 committed by Jon
parent 4af55b773f
commit a83d217703

View File

@ -41,8 +41,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-Donnxruntime_USE_OPENMP=ON"
"-Donnxruntime_BUILD_SHARED_LIB=ON"
# flip back to ON next release
"-Donnxruntime_ENABLE_LTO=OFF" # https://github.com/microsoft/onnxruntime/issues/2828
"-Donnxruntime_ENABLE_LTO=ON"
];
# ContribOpTest.StringNormalizerTest sets locale to en_US.UTF-8"