summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-09-04 11:25:04 +0200
committerGitHub <noreply@github.com>2025-09-04 11:25:04 +0200
commit6789dd7d88a192e3f55b95798cb393e7d12f368a (patch)
tree7f04815ad5214f97d0fb2becceceed7ce8089b3d /tools
parent443588a42fe9cf48b5f63184b94afe483cb0e761 (diff)
parentfda7082c54ad46a56ac885d4686b82bad8dbc7c9 (diff)
Merge pull request #4 from amlel-el-mahrouss/devv1.0.43
OCL — v1.0.43
Diffstat (limited to 'tools')
-rwxr-xr-xtools/hpptest.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/hpptest.py b/tools/hpptest.py
index f9fcd1c..dbed143 100755
--- a/tools/hpptest.py
+++ b/tools/hpptest.py
@@ -4,7 +4,8 @@
import sys, os
if __name__ == '__main__':
- if len(sys.argv) == 2:
- os.system(f"clang++ -std=c++20 -DSOCL_HPPTEST '-DSOCL_HPPTEST_ASSERT(x)=static_assert(x, #x)' {sys.argv[1]}")
- print("[TEST] HEADER COMPILATION PASSES")
+ if len(sys.argv) == 3:
+ ret = os.system(f"clang++ -I./dev/ -I{sys.argv[2]} -std=c++20 -DOCL_HPPTEST '-DOCL_HPPTEST_ASSERT(x)=static_assert(x, #x)' {sys.argv[1]}")
+ if ret == 0:
+ print("[TEST] HEADER COMPILATION PASSES")