about summary refs log tree commit diff
path: root/third_party/glog
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-07-05T16·46+0100
committertazjin <mail@tazj.in>2020-07-05T16·54+0000
commit7e8a48c82c52c9ce39100902ac31dd075577eded (patch)
treed20e09b092084367370d5dbc9d22f09d23d22e1a /third_party/glog
parent5cb6e6ee21431349ec31cccebf9ab9a56e904bb2 (diff)
fix(3p/nix): Link to glog built by Nix r/1212
Same as cl/921, it seems that the trick to making this work is indeed
overriding the C++ standard used in the dependency.

Change-Id: I3c5984d71014d774c161ecc283844f504fd44719
Reviewed-on: https://cl.tvl.fyi/c/depot/+/922
Tested-by: BuildkiteCI
Reviewed-by: lukegb <lukegb@tvl.fyi>
Diffstat (limited to 'third_party/glog')
-rw-r--r--third_party/glog/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/third_party/glog/default.nix b/third_party/glog/default.nix
index cebb71c290..575821cb49 100644
--- a/third_party/glog/default.nix
+++ b/third_party/glog/default.nix
@@ -7,7 +7,10 @@ in llvmPackages.libcxxStdenv.mkDerivation {
   src = ./.;
 
   nativeBuildInputs = [ cmake ];
-  cmakeFlags = [ "-WITH_GFLAGS=OFF" ];
+  cmakeFlags = [
+    "-DCMAKE_CXX_STANDARD=17"
+    "-WITH_GFLAGS=OFF"
+  ];
 
   meta = with lib; {
     homepage = "https://github.com/google/glog";