Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit 8a1c7f9

Browse files
committed
Optimize build flags for my machine
1 parent a53b015 commit 8a1c7f9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ set(iz_SRCS
1414

1515
add_definitions(-DHAVE_MMAP)
1616

17-
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -mmmx -Winline -fomit-frame-pointer -fno-rtti -fno-exceptions")
17+
set(CMAKE_EXE_LINKER_FLAGS "-Wl,-O1,-s,--no-export-dynamic")
18+
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -mmmx -mtune=atom -Winline -W -Wall -fomit-frame-pointer -fno-rtti -fno-exceptions")
1819

1920
add_executable(iz ${iz_SRCS})
2021

iz.pro

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DEPENDPATH += .
88
INCLUDEPATH += .
99
CONFIG += release
1010
QT -= gui core
11-
QMAKE_CXXFLAGS_RELEASE += "-O2 -mmmx -Winline -fomit-frame-pointer -fno-rtti -fno-exceptions"
11+
QMAKE_CXXFLAGS_RELEASE += "-DHAVE_MMAP -O2 -mmmx -mtune=atom -Winline -fomit-frame-pointer -fno-rtti -fno-exceptions"
1212

1313
# Input
1414
HEADERS += intmacros.h portableimage.h bitcoder.h pixel.h libiz.h iz_p.h image.h file.h

0 commit comments

Comments
 (0)