fixups for newer clang and cmake

This commit is contained in:
DarthArgus
2018-05-02 18:00:48 +00:00
parent 9de2787107
commit 8ce5101b3c
3 changed files with 5 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ elseif (UNIX)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast \
-fno-signed-zeros -freciprocal-math -ffp-contract=fast \
-fno-threadsafe-statics -fslp-vectorize-aggressive -fslp-vectorize \
-fno-threadsafe-statics -fslp-vectorize \
-fno-stack-protector -fstrict-enums -fstrict-vtable-pointers \
-fno-coverage-mapping -fno-spell-checking -fshort-enums -finline-functions \
-finline-hint-functions -fno-unroll-loops")

View File

@@ -3,4 +3,8 @@ cmake_minimum_required(VERSION 2.8)
project(Miff)
# todo: if you're running a windows build, comment this out
# windows sucks, I don't care
set(CMAKE_EXE_LINKER_FLAGS "-Wl,-z,norelro,-O3,--sort-common,--as-needed,--no-relax,-z,combreloc,-z,global,--no-omagic")
add_subdirectory(src)

View File

@@ -1,4 +1,3 @@
if(WIN32)
set(PLATFORM_SOURCES
win32/InputFileHandler.cpp