833851cd6e
A dependency (boost) makes use of `std::auto_ptr`, which is no longer supported in C++17 in Clang. This change re-enables `std::auto_ptr` capabilities.
17 lines
577 B
Nix
17 lines
577 B
Nix
{ stdenv, qtModule, qtbase, qtmultimedia }:
|
|
|
|
qtModule {
|
|
name = "qtlocation";
|
|
qtInputs = [ qtbase qtmultimedia ];
|
|
outputs = [ "bin" "out" "dev" ];
|
|
# Linking with -lclipper fails with parallel build enabled
|
|
enableParallelBuilding = false;
|
|
qmakeFlags = stdenv.lib.optional stdenv.isDarwin [
|
|
# boost uses std::auto_ptr which has been disabled in clang with libcxx
|
|
# This flag re-enables this feature
|
|
# https://libcxx.llvm.org/docs/UsingLibcxx.html#c-17-specific-configuration-macros
|
|
"QMAKE_CXXFLAGS+=-D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR"
|
|
];
|
|
|
|
}
|