Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@
<string>org.speedcrunch</string>
<key>CFBundleShortVersionString</key>
<string>0.12</string>
<key>LSMinimumSystemVersion</key>
<string>10.14</string>
</dict>
</plist>
9 changes: 9 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ add_compile_options(-Wall -pedantic)

if(APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")

option(UNIVERSAL_SPEEDCRUNCH "Build universal binary for both Intel and Apple Silicon" OFF)
if(UNIVERSAL_SPEEDCRUNCH)
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64" CACHE STRING " architectures" FORCE)
endif()

if(NOT CMAKE_OSX_DEPLOYMENT_TARGET)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.14" CACHE STRING "Minimum macOS version")
endif()
endif()

set(speedcrunch_VERSION "master")
Expand Down
5 changes: 5 additions & 0 deletions src/math/rational.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,9 @@ class Rational
double toDouble() const;
};

inline unsigned int qHash(const Rational& r)
{
return qHash(r.numerator()) ^ qHash(r.denominator());
}

#endif // RATIONAL_H
2 changes: 1 addition & 1 deletion src/speedcrunch.pro
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ macx {
ICON = resources/speedcrunch.icns
QMAKE_INFO_PLIST = ../pkg/Info.plist
TARGET = SpeedCrunch
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.8
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.14
QMAKE_CXXFLAGS += -std=c++17
}

Expand Down