mirror of
https://github.com/clearlinux/autospec.git
synced 2026-08-25 17:45:49 +00:00
CMake support: Don't make copies of sources for AVX2/AVX512/32-bit builds
The CMake pattern reuses the same sources by doing different out-of-tree builds. The copied sources are not useful. Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
committed by
William Douglas
parent
0ec8e42f4f
commit
71ff1b4400
+13
-12
@@ -402,18 +402,19 @@ class Specfile(object):
|
||||
self.tarball_prefix,
|
||||
destination))
|
||||
self.apply_patches()
|
||||
if config.config_opts['32bit']:
|
||||
self._write_strip("pushd ..")
|
||||
self._write_strip("cp -a {} build32".format(self.tarball_prefix))
|
||||
self._write_strip("popd")
|
||||
if config.config_opts['use_avx2']:
|
||||
self._write_strip("pushd ..")
|
||||
self._write_strip("cp -a {} buildavx2".format(self.tarball_prefix))
|
||||
self._write_strip("popd")
|
||||
if config.config_opts['use_avx512']:
|
||||
self._write_strip("pushd ..")
|
||||
self._write_strip("cp -a {} buildavx512".format(self.tarball_prefix))
|
||||
self._write_strip("popd")
|
||||
if self.default_pattern != 'cmake':
|
||||
if config.config_opts['32bit']:
|
||||
self._write_strip("pushd ..")
|
||||
self._write_strip("cp -a {} build32".format(self.tarball_prefix))
|
||||
self._write_strip("popd")
|
||||
if config.config_opts['use_avx2']:
|
||||
self._write_strip("pushd ..")
|
||||
self._write_strip("cp -a {} buildavx2".format(self.tarball_prefix))
|
||||
self._write_strip("popd")
|
||||
if config.config_opts['use_avx512']:
|
||||
self._write_strip("pushd ..")
|
||||
self._write_strip("cp -a {} buildavx512".format(self.tarball_prefix))
|
||||
self._write_strip("popd")
|
||||
self._write_strip("\n")
|
||||
|
||||
def write_32bit_exports(self):
|
||||
|
||||
Reference in New Issue
Block a user