#!/usr/bin/env python31# Copyright 2025 The Emscripten Authors. All rights reserved.2# Emscripten is available under two separate licenses, the MIT license and the3# University of Illinois/NCSA Open Source License. Both these licenses can be4# found in the LICENSE file.56"""emscan-deps - clang-scan-deps helper script78This script acts as a frontend replacement for clang-scan-deps.9"""1011import sys1213from tools import shared, cmdline, compile1415argv = sys.argv[1:]1617# Parse and discard any emcc-specific flags (e.g. -sXXX).18newargs = cmdline.parse_arguments(argv)[1]1920# Add any clang flags that emcc would add.21newargs += compile.get_cflags(tuple(argv))2223shared.exec_process([shared.CLANG_SCAN_DEPS] + newargs)242526