Laszlo Nagy | bc68758 | 2016-01-12 22:38:41 +0000 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | # -*- coding: utf-8 -*- |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 3 | # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | # See https://llvm.org/LICENSE.txt for license information. |
| 5 | # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Laszlo Nagy | bc68758 | 2016-01-12 22:38:41 +0000 | [diff] [blame] | 6 | |
| 7 | import multiprocessing |
| 8 | multiprocessing.freeze_support() |
| 9 | |
| 10 | import sys |
| 11 | import os.path |
| 12 | this_dir = os.path.dirname(os.path.realpath(__file__)) |
| 13 | sys.path.append(os.path.dirname(this_dir)) |
| 14 | |
Laszlo Nagy | 5270bb9 | 2017-03-08 21:18:51 +0000 | [diff] [blame] | 15 | from libscanbuild.intercept import intercept_build |
| 16 | sys.exit(intercept_build()) |