0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-11 07:25:35 +00:00
Files
termux-packages/packages/python-torch/0002-fix-macros.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

13 lines
423 B
Diff

diff -uNr pytorch/c10/macros/Macros.h pytorch.mod/c10/macros/Macros.h
--- pytorch/c10/macros/Macros.h 2022-10-04 19:55:33.000000000 +0900
+++ pytorch.mod/c10/macros/Macros.h 2022-10-04 23:41:33.513647184 +0900
@@ -390,7 +390,7 @@
#include <TargetConditionals.h>
#endif
-#if defined(__ANDROID__)
+#if defined(__ANDROID__) && !defined(__TERMUX__)
#define C10_ANDROID 1
#define C10_MOBILE 1
#elif ( \