mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
don't enforce igc version from CMakeLists.txt
moving this requirement to .spec file. CMake should try building with any IGC version installed in system. More strict requirement should be defined at package level. Change-Id: Ieae656fa0eac4069ee8870a829fe116e66ee5ced Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
@ -51,13 +51,6 @@ gmmlib_revision = manifest['components']['gmmlib']['revision']
|
||||
c = repo.commit(neo_revision)
|
||||
cd = datetime.datetime.fromtimestamp(c.committed_date)
|
||||
|
||||
with open("CMakeLists.txt", "r") as f:
|
||||
for line in f.readlines():
|
||||
m = re.match("^(pkg_check_modules)(\s*\(\s*)(\S+)\s+(\S+[^>\s])(>?=)([^=\s]\S+)(\s*\)\s*)$", line.strip())
|
||||
if not m is None:
|
||||
if m.groups()[3] == 'igc-opencl':
|
||||
igc_revision = m.groups()[5]
|
||||
|
||||
pkg_version = "%s.%s.%s" %(str(cd.isocalendar()[0])[-2:], cd.isocalendar()[1], sys.argv[3])
|
||||
|
||||
with open(sys.argv[2], 'r') as f:
|
||||
@ -78,9 +71,5 @@ with open(sys.argv[2], 'r') as f:
|
||||
print "%s" % (line.rstrip().replace("__NEO_PACKAGE_RELEASE__", "%s" % sys.argv[4]))
|
||||
continue
|
||||
|
||||
if not re.match(".*__IGC_VERSION_REQUIRED__$", line.strip()) is None:
|
||||
print "%s" % (line.rstrip().replace("__IGC_VERSION_REQUIRED__", "%s" % igc_revision))
|
||||
continue
|
||||
|
||||
print line.rstrip()
|
||||
|
||||
|
Reference in New Issue
Block a user