Pārlūkot izejas kodu

Merge topic 'aarch64-no-std-move-function'

8f56f22b84 cmListCommand: Avoid std::function move constructor on aarch64

Acked-by: Kitware Robot <[email protected]>
Merge-request: !2857
Brad King 6 gadi atpakaļ
vecāks
revīzija
29fbd3c9a0
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      Source/cmListCommand.cxx

+ 5 - 0
Source/cmListCommand.cxx

@@ -666,7 +666,12 @@ bool cmListCommand::HandleTransformCommand(
     ActionDescriptor(std::string name, int arity, transform_type transform)
       : Name(std::move(name))
       , Arity(arity)
+#if defined(__GNUC__) && __GNUC__ == 6 && defined(__aarch64__)
+      // std::function move constructor miscompiles on this architecture
+      , Transform(transform)
+#else
       , Transform(std::move(transform))
+#endif
     {
     }