Merge pull request #290880 from simonhollingshead/anbox-cpp14
anbox: Make android-emugl compile with C++14.
This commit is contained in:
commit
1ae9cee0f1
2 changed files with 13 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
--- a/external/android-emugl/CMakeLists.txt
|
||||
+++ b/external/android-emugl/CMakeLists.txt
|
||||
@@ -1,7 +1,7 @@
|
||||
# Don't treat any warnings as error as we take the source directly from
|
||||
# upstream and just compile it.
|
||||
set(CMAKE_C_FLAGS "-Wall")
|
||||
-set(CMAKE_CXX_FLAGS "-std=c++11 -Wall")
|
||||
+set(CMAKE_CXX_FLAGS "-std=c++14 -Wall")
|
||||
|
||||
# Ensure -fPIC
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
@ -130,6 +130,8 @@ stdenv.mkDerivation rec {
|
|||
})
|
||||
# Ensures generated desktop files work on store path change
|
||||
./0001-NixOS-Use-anbox-from-PATH-in-desktop-files.patch
|
||||
# Allows android-emugl to build with gtest 1.13+
|
||||
./0002-NixOS-Build-android-emugl-with-cpp-14.patch
|
||||
# Provide window icons
|
||||
(fetchpatch {
|
||||
url = "https://github.com/samueldr/anbox/commit/2387f4fcffc0e19e52e58fb6f8264fbe87aafe4d.patch";
|
||||
|
|
Loading…
Reference in a new issue