summaryrefslogtreecommitdiffhomepage
path: root/tools/hpptest.py
blob: f9fcd1ca812a8ab8471c42fd2bc11ffcd2f9da78 (plain)
1
2
3
4
5
6
7
8
9
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]}")
        print("[TEST] HEADER COMPILATION PASSES")