aboutsummaryrefslogtreecommitdiff
path: root/ports/spirv-tools/comment-distutils.patch
diff options
context:
space:
mode:
authorHenrik Gaßmann <BurningEnlightenment@users.noreply.github.com>2020-03-20 08:32:07 +0100
committerGitHub <noreply@github.com>2020-03-20 00:32:07 -0700
commit0a64f3a1f6868f70cfbee038c2646d10085d0caf (patch)
tree0ac56459a571b0e70ade2bc0408955c92b381dce /ports/spirv-tools/comment-distutils.patch
parent8b201cb43c5bb1fd976e1deac2154b0ab64c5e10 (diff)
downloadvcpkg-0a64f3a1f6868f70cfbee038c2646d10085d0caf.tar.gz
vcpkg-0a64f3a1f6868f70cfbee038c2646d10085d0caf.zip
[spirv-tools] Update to version 2020.1 (#10441)
* [spirv-headers] Update to version 1.5.1 * [spirv-tools] Update to version 2020.1 * [spirv-tools] Work around an import config typo * [spirv-tools] Fix nitpicks * [spirv-headers] Modernize port * [spirv-tools] Fix directory name capitalization mismatch
Diffstat (limited to 'ports/spirv-tools/comment-distutils.patch')
-rw-r--r--ports/spirv-tools/comment-distutils.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/ports/spirv-tools/comment-distutils.patch b/ports/spirv-tools/comment-distutils.patch
index 2426f82ba..1ec4e9dcb 100644
--- a/ports/spirv-tools/comment-distutils.patch
+++ b/ports/spirv-tools/comment-distutils.patch
@@ -1,22 +1,22 @@
diff --git a/utils/generate_registry_tables.py b/utils/generate_registry_tables.py
-index 8b1c3572..6ab28fe6 100644
+index e662ba9..49f2718 100644
--- a/utils/generate_registry_tables.py
+++ b/utils/generate_registry_tables.py
-@@ -16,7 +16,7 @@
-
- from __future__ import print_function
+@@ -14,7 +14,7 @@
+ # limitations under the License.
+ """Generates the vendor tool table from the SPIR-V XML registry."""
-import distutils.dir_util
+#import distutils.dir_util
import os.path
import xml.etree.ElementTree
-@@ -64,7 +64,7 @@ def main():
+@@ -62,7 +62,7 @@ def main():
with open(args.xml) as xml_in:
registry = xml.etree.ElementTree.fromstring(xml_in.read())
- distutils.dir_util.mkpath(os.path.dirname(args.generator_output))
+ #distutils.dir_util.mkpath(os.path.dirname(args.generator_output))
- print(generate_vendor_table(registry), file=open(args.generator_output, 'w'))
-
+ with open(args.generator_output, 'w') as f:
+ f.write(generate_vendor_table(registry))