cataclysm-dda{,-git}: clean up
- Remove cmath include (introduced by 97c484a) since the current gcc/clang works fine without it. - Suppress known compiler warnings instead of removing -Werror flag.
This commit is contained in:
parent
52f6310626
commit
27ec2df59e
@ -22,11 +22,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
sed -i Makefile \
|
|
||||||
-e 's,-Werror,,g'
|
|
||||||
|
|
||||||
sed '1i#include <cmath>' \
|
|
||||||
-i src/{crafting,skill,weather_data,melee,vehicle,overmap,iuse_actor}.cpp
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
@ -35,6 +30,11 @@ stdenv.mkDerivation rec {
|
|||||||
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
||||||
"NATIVE=osx CLANG=1"
|
"NATIVE=osx CLANG=1"
|
||||||
"OSX_MIN=10.6" # SDL for macOS only supports deploying on 10.6 and above
|
"OSX_MIN=10.6" # SDL for macOS only supports deploying on 10.6 and above
|
||||||
|
] ++ stdenv.lib.optionals stdenv.cc.isGNU [
|
||||||
|
"WARNINGS+=-Wno-deprecated-declarations"
|
||||||
|
"WARNINGS+=-Wno-ignored-attributes"
|
||||||
|
] ++ stdenv.lib.optionals stdenv.cc.isClang [
|
||||||
|
"WARNINGS+=-Wno-inconsistent-missing-override"
|
||||||
];
|
];
|
||||||
|
|
||||||
postBuild = stdenv.lib.optionalString stdenv.isDarwin ''
|
postBuild = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
@ -21,11 +21,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
sed -i Makefile \
|
|
||||||
-e 's,-Werror,,g'
|
|
||||||
|
|
||||||
sed '1i#include <cmath>' \
|
|
||||||
-i src/{crafting,skill,weather_data,melee,vehicle,overmap,iuse_actor}.cpp
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user