diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2025-05-07 12:10:55 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2025-05-07 16:39:59 +0200 |
commit | b909c514866f1f0713edd831d183e4fa1e5c91f5 (patch) | |
tree | 3654f3655cb10a002c499106bfb01ee62afe9e62 /CC/include_scan.py | |
parent | eff965fdd8f03668f99d9c90ea9a3f81dabc3b66 (diff) | |
download | rules-cc-b909c514866f1f0713edd831d183e4fa1e5c91f5.tar.gz |
Do not assume out_dirs exist
Diffstat (limited to 'CC/include_scan.py')
-rwxr-xr-x | CC/include_scan.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CC/include_scan.py b/CC/include_scan.py index e169ec5..d99392b 100755 --- a/CC/include_scan.py +++ b/CC/include_scan.py @@ -41,6 +41,7 @@ def include_scan(out_dir: str, cmd: list[str]): paths = {os.path.normpath(i) for i in items.split(' ')} includes = {p for p in paths if p.startswith('include/')} + os.makedirs(os.path.join(out_dir, 'include'), exist_ok=True) for path in includes: out_path = os.path.join(out_dir, path) try: |