-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
port-gcc needs to use C++11 to use non-static initializers. Apparently
LLVM doesn't care. Submitted upstream: milkytracker/MilkyTracker#328 Fixes build on sparc64
- Loading branch information
1 parent
1f77d3d
commit 1264468
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
ports-gcc needs to be told to use C++11 | ||
|
||
https://github.com/milkytracker/MilkyTracker/pull/328 | ||
|
||
Index: CMakeLists.txt | ||
--- CMakeLists.txt.orig | ||
+++ CMakeLists.txt | ||
@@ -23,7 +23,7 @@ cmake_minimum_required(VERSION 3.10) | ||
project(MilkyTracker) | ||
|
||
# Set C++ standard to C++98 | ||
-set(CMAKE_CXX_STANDARD 98) | ||
+set(CMAKE_CXX_STANDARD 11) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
|
||
# Enable IDE solution folders |