0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-11 12:05:45 +00:00
Files
termux-packages/packages/python-torch/0009-fix-over-optimizing.patch
Fredrik Fornwall 3e14806ae6 chore(main/python-{torch,torchaudio,torchvision}) Move to main
Move pytorch from x11 to main after removal of opencv dependencies
in #21764.
2024-10-12 15:07:54 +02:00

15 lines
438 B
Diff

See https://github.com/termux/termux-packages/issues/15666#issuecomment-1479663622
and https://github.com/termux/termux-packages/issues/15666#issuecomment-1482340986
--- a/cmake/Codegen.cmake.orig
+++ b/cmake/Codegen.cmake
@@ -57,7 +57,7 @@
if(MSVC)
set(OPT_FLAG "/fp:strict ")
else(MSVC)
- set(OPT_FLAG "-O3 ")
+ set(OPT_FLAG "-Og ")
if("${CMAKE_BUILD_TYPE}" MATCHES "Debug")
set(OPT_FLAG " ")
endif()