[mlgo] Don't set the source permissions when copying over tf files
authorMircea Trofin <mtrofin@google.com>
Fri, 26 Aug 2022 16:49:53 +0000 (09:49 -0700)
committerMircea Trofin <mtrofin@google.com>
Fri, 26 Aug 2022 16:49:53 +0000 (09:49 -0700)
This is akin to the `install` behavior. It should make build directory
deletable on certain build bots.

llvm/CMakeLists.txt

index cdce25b..8a1dcb3 100644 (file)
@@ -994,6 +994,7 @@ if (NOT TENSORFLOW_AOT_PATH STREQUAL "")
   # This needs to happen to avoid clashing protobuf codegen when building both AOT and development mode.
   # We plan to replace protobuf with a simpler alternative, so this will go away.
   file(COPY ${TENSORFLOW_AOT_PATH}/include DESTINATION ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/tensorflow
+    NO_SOURCE_PERMISSIONS
     PATTERN "google/*" EXCLUDE
     PATTERN "*.pb.h" EXCLUDE) 
   include_directories(${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/tensorflow/include)