diff options
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/hpptest.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/hpptest.py b/tools/hpptest.py new file mode 100755 index 0000000..2cf8e9d --- /dev/null +++ b/tools/hpptest.py @@ -0,0 +1,10 @@ +#! /usr/bin/env python3 +# -*- coding: utf-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]} -o a.out && cat {sys.argv[1]}") + print("[TEST] HEADER COMPILATION PASSES") + |
