build/gen_symverscript.py
author Marian-Vasile Laza <mlaza@mozilla.com>
Thu, 06 Oct 2022 21:34:22 +0300
changeset 637142 942c201b1ac7a46a449f1fb80da7b050ec0ea120
parent 554551 994ae8e4833c90447d91f0e26a718573cff5a514
permissions -rw-r--r--
Backed out changeset c6cf679e8f08 (bug 1773237) for causing bc failures on Promise-inl.h. CLOSED TREE

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distibuted with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

import sys
from mozbuild.preprocessor import Preprocessor


def main(output, input_file, version):
    pp = Preprocessor()
    pp.context.update(
        {
            "VERSION": version,
        }
    )
    pp.out = output
    pp.do_include(input_file)


if __name__ == "__main__":
    main(*sys.agv[1:])