Bug 1257904 - Remove YASM_MAJOR_VERSION/YASM_MINOR_VERSION. r=firefox-build-system-reviewers,mshal
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 10 Jan 2019 16:23:19 +0000
changeset 453572 c41c32486c7e
parent 453571 8bac283f6c7e
child 453573 24243f13c895
push id35360
push usernbeleuzu@mozilla.com
push dateSat, 12 Jan 2019 09:39:47 +0000
treeherdermozilla-central@cb35977ae7a4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfirefox-build-system-reviewers, mshal
bugs1257904
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1257904 - Remove YASM_MAJOR_VERSION/YASM_MINOR_VERSION. r=firefox-build-system-reviewers,mshal They are entirely unused now. Differential Revision: https://phabricator.services.mozilla.com/D16158
build/moz.configure/toolchain.configure
--- a/build/moz.configure/toolchain.configure
+++ b/build/moz.configure/toolchain.configure
@@ -62,36 +62,16 @@ yasm = check_prog('YASM', ['yasm'], allo
 def yasm_version(yasm):
     version = check_cmd_output(
         yasm, '--version',
         onerror=lambda: die('Failed to get yasm version.')
     ).splitlines()[0].split()[1]
     return Version(version)
 
 
-@depends_if(yasm_version)
-def yasm_major_version(yasm_version):
-    return str(yasm_version.major)
-
-
-@depends_if(yasm_version)
-def yasm_minor_version(yasm_version):
-    return str(yasm_version.minor)
-
-
-set_config('YASM_MAJOR_VERSION', yasm_major_version)
-set_config('YASM_MINOR_VERSION', yasm_minor_version)
-# Until we move all the yasm consumers out of old-configure.
-# bug 1257904
-add_old_configure_assignment('_YASM_MAJOR_VERSION',
-                             yasm_version.major)
-add_old_configure_assignment('_YASM_MINOR_VERSION',
-                             yasm_version.minor)
-
-
 @depends(yasm, target)
 def yasm_asflags(yasm, target):
     if yasm:
         asflags = {
             ('OSX', 'x86'): ['-f', 'macho32'],
             ('OSX', 'x86_64'): ['-f', 'macho64'],
             ('WINNT', 'x86'): ['-f', 'win32'],
             ('WINNT', 'x86_64'): ['-f', 'x64'],