From 684d681b85e2c0c1f946b15a5284432e1585d0b3 Mon Sep 17 00:00:00 2001 From: Randy Dodgen Date: Fri, 15 Nov 2019 14:34:07 -0800 Subject: [PATCH] Fix definitions of constants for RngSupport At a low-enough optimization level, even integral constants can end up odr-used; that causes a link-time failure, if they don't have a definition. PiperOrigin-RevId: 280737529 Change-Id: I55dd79d86fd83abf9a0bd285081081dfd3e2b128 --- tensorflow/stream_executor/rng.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/tensorflow/stream_executor/rng.cc b/tensorflow/stream_executor/rng.cc index b0efad91084..bdaa86e98f4 100644 --- a/tensorflow/stream_executor/rng.cc +++ b/tensorflow/stream_executor/rng.cc @@ -40,10 +40,8 @@ bool RngSupport::CheckSeed(const uint8 *seed, uint64 seed_bytes) { return true; } -#if defined(__APPLE__) || defined(__FreeBSD__) const int RngSupport::kMinSeedBytes; const int RngSupport::kMaxSeedBytes; -#endif } // namespace rng } // namespace stream_executor