diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-31 21:02:55 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-31 21:02:55 +0000 |
commit | d36c5f9e59f92a021c987989cd79d44460e0da42 (patch) | |
tree | 2504c88d1f287ac3a71ebc56e5d19f34a2c1b9a4 /dev-util/Tensile/files/Tensile-5.4.2-use-ninja.patch | |
parent | e860dfa5acdb67f8e2b8938b005dbaaaaf2c984a (diff) |
gentoo auto-resync : 31:01:2023 - 21:02:55
Diffstat (limited to 'dev-util/Tensile/files/Tensile-5.4.2-use-ninja.patch')
-rw-r--r-- | dev-util/Tensile/files/Tensile-5.4.2-use-ninja.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-util/Tensile/files/Tensile-5.4.2-use-ninja.patch b/dev-util/Tensile/files/Tensile-5.4.2-use-ninja.patch new file mode 100644 index 000000000000..f88bf00665cb --- /dev/null +++ b/dev-util/Tensile/files/Tensile-5.4.2-use-ninja.patch @@ -0,0 +1,21 @@ +Index: Tensile-rocm-5.4.2/Tensile/ClientExecutable.py +=================================================================== +--- Tensile-rocm-5.4.2.orig/Tensile/ClientExecutable.py ++++ Tensile-rocm-5.4.2/Tensile/ClientExecutable.py +@@ -44,6 +44,7 @@ class CMakeEnvironment: + args = ['cmake'] + args += ['-G', 'Ninja'] if (os.name == 'nt') else [] + args += itertools.chain.from_iterable([ ['-D{}={}'.format(key, value)] for key,value in self.options.items()]) ++ args += itertools.chain.from_iterable([ ['-G', 'Ninja'], [ '-D', 'CMAKE_EXPORT_COMPILE_COMMANDS=ON' ] ]) + args += [self.sourceDir] + args = [cmake_path(arg) for arg in args] + +@@ -53,7 +54,7 @@ class CMakeEnvironment: + subprocess.check_output(args, stderr=subprocess.STDOUT, cwd=Common.ensurePath(self.buildDir)) + + def build(self): +- args = [('ninja' if (os.name == "nt") else 'make'), f'-j{CPUThreadCount()}'] ++ args = [('ninja'), f'-j{CPUThreadCount()}'] + Common.print2(' '.join(args)) + with Common.ClientExecutionLock(): + # change to use check_output to force windows cmd block util command finish |