summaryrefslogtreecommitdiffstats
path: root/cmake/mips.cmake
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2020-10-24 08:25:59 -0600
committerGitHub <noreply@github.com>2020-10-24 08:25:59 -0600
commit767b28537a01c8dd0171a8f8fc2f817104028366 (patch)
tree4c1f0a3d95bceb7e98d3bead2589f266cbee553c /cmake/mips.cmake
parent27f308091b5b1ae093a5f763a3bc8b9d5b1e6adf (diff)
downloadbcm5719-ortega-767b28537a01c8dd0171a8f8fc2f817104028366.tar.gz
bcm5719-ortega-767b28537a01c8dd0171a8f8fc2f817104028366.zip
builds: Add Microsoft's SDL and banned API list (#148)
Diffstat (limited to 'cmake/mips.cmake')
-rw-r--r--cmake/mips.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/mips.cmake b/cmake/mips.cmake
index 2aaea77..17c2f7b 100644
--- a/cmake/mips.cmake
+++ b/cmake/mips.cmake
@@ -42,7 +42,12 @@
### @endcond
################################################################################
-SET(MIPS_COMPILE_OPTIONS -nostdlib -nodefaultlibs -fomit-frame-pointer -target mips -mcpu=mips2 )
+SET(MIPS_COMPILE_OPTIONS
+ -nostdlib -nodefaultlibs
+ $<$<NOT:$<COMPILE_LANGUAGE:ASM>>:-fomit-frame-pointer> # Don't include for ASM sources
+ -target mips -mcpu=mips2
+ $<$<NOT:$<COMPILE_LANGUAGE:ASM>>:-include "${CMAKE_SOURCE_DIR}/include/banned.h">
+)
SET(MIPS_LINK_OPTIONS --gc-sections)
# SET(CMAKE_EXE_LINKER_FLAGS -static)
OpenPOWER on IntegriCloud