A couple of fixes to the windows build.
Closes https://github.com/google/iree/pull/838
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/iree/pull/838 from stellaraccident:winbuild1 3d105f454275dc290660deca96fb824b89fae5cd
PiperOrigin-RevId: 297020846
diff --git a/bindings/python/pyiree/compiler/export.def b/bindings/python/pyiree/compiler/export.def
new file mode 100644
index 0000000..1f2a8c1
--- /dev/null
+++ b/bindings/python/pyiree/compiler/export.def
@@ -0,0 +1,17 @@
+;; Copyright 2020 Google LLC
+;;
+;; Licensed under the Apache License, Version 2.0 (the "License");
+;; you may not use this file except in compliance with the License.
+;; You may obtain a copy of the License at
+;;
+;; https://www.apache.org/licenses/LICENSE-2.0
+;;
+;; Unless required by applicable law or agreed to in writing, software
+;; distributed under the License is distributed on an "AS IS" BASIS,
+;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+;; See the License for the specific language governing permissions and
+;; limitations under the License.
+
+LIBRARY BINDING
+EXPORTS
+ PyInit_binding @1
diff --git a/integrations/tensorflow/bindings/python/pyiree/tf/compiler/export.def b/integrations/tensorflow/bindings/python/pyiree/tf/compiler/export.def
new file mode 100644
index 0000000..1f2a8c1
--- /dev/null
+++ b/integrations/tensorflow/bindings/python/pyiree/tf/compiler/export.def
@@ -0,0 +1,17 @@
+;; Copyright 2020 Google LLC
+;;
+;; Licensed under the Apache License, Version 2.0 (the "License");
+;; you may not use this file except in compliance with the License.
+;; You may obtain a copy of the License at
+;;
+;; https://www.apache.org/licenses/LICENSE-2.0
+;;
+;; Unless required by applicable law or agreed to in writing, software
+;; distributed under the License is distributed on an "AS IS" BASIS,
+;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+;; See the License for the specific language governing permissions and
+;; limitations under the License.
+
+LIBRARY BINDING
+EXPORTS
+ PyInit_binding @1
diff --git a/iree/hal/vulkan/renderdoc_capture_manager.cc b/iree/hal/vulkan/renderdoc_capture_manager.cc
index 9145280..504179c 100644
--- a/iree/hal/vulkan/renderdoc_capture_manager.cc
+++ b/iree/hal/vulkan/renderdoc_capture_manager.cc
@@ -54,7 +54,6 @@
return NotFoundErrorBuilder(IREE_LOC)
<< "Could not load librenderdoc.so. Is it on LD_LIBRARY_PATH?";
}
-#endif
// Fetch the API object from the loaded library.
pRENDERDOC_GetAPI RENDERDOC_GetAPI =
@@ -70,6 +69,7 @@
LOG(INFO) << "Connected to RenderDoc's API";
return OkStatus();
+#endif
}
void RenderDocCaptureManager::Disconnect() {