summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangjung Woo <sangjung.woo@samsung.com>2024-06-20 11:18:33 +0900
committerSangjung Woo <sangjung.woo@samsung.com>2024-06-20 16:41:15 +0900
commit88484bd5fd73e91114aa8c9a6186be3f37b1d6d3 (patch)
treed400cc99008997d8dac2d3c841c0c23deac30fa2
parent6d9c49450cdcd4ed6256f81e690f5201f714634d (diff)
downloadpytorch-tizen.tar.gz
pytorch-tizen.tar.bz2
pytorch-tizen.zip
This patch fixes the build error for gcc-v14. Change-Id: I2c5ef048470a882c703e4ea6e82ccfd17b4e6f49 Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
-rw-r--r--packaging/pytorch.spec4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/pytorch.spec b/packaging/pytorch.spec
index 77c2975ea1..6273c37782 100644
--- a/packaging/pytorch.spec
+++ b/packaging/pytorch.spec
@@ -120,8 +120,8 @@ export PYTHONPATH="$PYTHONPATH:./packaging/python_module"
mkdir -p build
pushd build
alias python=python3
-CFLAGS=`echo $CFLAGS | sed -e "s|-Wall|-Wall -Wno-unused-function -Wno-array-parameter -Wno-missing-braces -Wno-nonnull|"`
-CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-Wall|-Wall -Wno-unused-function -Wno-array-parameter -Wno-missing-braces -Wno-nonnull|"`
+CFLAGS=`echo $CFLAGS | sed -e "s|-Wall|-Wall -Wno-unused-function -Wno-missing-braces -Wno-nonnull -Wno-tautological-compare -Wno-incompatible-pointer-types|g"`
+CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-Wall|-Wall -Wno-unused-function -Wno-missing-braces -Wno-nonnull -Wno-tautological-compare|g"`
cmake .. \
-DCMAKE_INSTALL_PREFIX=./install \
-DCMAKE_VERBOSE_MAKEFILE=1 \