Skip to content

Commit

Permalink
app_python: use -fno-strict-aliasing for gcc
Browse files Browse the repository at this point in the history
- python2 is known for not confirming strict aliasing
- it is EoL and likely not going to be fixed
- GH #2298

(cherry picked from commit 3366bf4)
  • Loading branch information
miconda committed May 1, 2020
1 parent 21e8b24 commit 178cbde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/app_python/Makefile
Expand Up @@ -29,5 +29,9 @@ endif

DEFS+=-I${PYTHON_INCDIR}

ifeq ($(CC_NAME), gcc)
DEFS+= -fno-strict-aliasing
endif

include ../../Makefile.modules

0 comments on commit 178cbde

Please sign in to comment.