#!/usr/bin/env python3 import sys import subprocess import os import os.path if __name__ == "__main__": exe_path = os.path.abspath(__file__) exe_path = os.path.dirname(exe_path) # get path of this file clang_path = os.path.join(exe_path, "clang++") target = "pi32v2" if len(sys.argv) == 1: out_argv = [clang_path] else: out_argv = [clang_path, "-target", target] out_argv.extend(sys.argv[1:]) sys.exit(subprocess.call(out_argv))