summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-21 01:32:26 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-21 01:42:01 +0100
commit682d03f0b8e22168e2ccd2c4a35efae230d40eb0 (patch)
tree10583ee7130379feef0cd440266142fb6eede906 /tools
parent7e757c3eacb05756b0f616e4ace46c098c39a05c (diff)
feat: Using BSL now, final commit before the Cork release.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/hpptest.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/hpptest.py b/tools/hpptest.py
index 218255d..08c5719 100755
--- a/tools/hpptest.py
+++ b/tools/hpptest.py
@@ -1,11 +1,19 @@
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
+# HPPTEST: Header-only C++ library test runner.
+# Written by Amlal El Mahrouss.
+# Licensed under the Boost Software License
+
import sys, os
+COMPILER="clang++"
+INCLUDE_DIR="./dev/"
+CXX_STD="c++20"
+
if __name__ == '__main__':
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]}")
+ ret = os.system(f"{COMPILER} -I{INCLUDE_DIR} -I{sys.argv[2]} -std={CXX_STD} -DOCL_HPPTEST '-DOCL_HPPTEST_ASSERT(x)=static_assert(x, #x)' {sys.argv[1]}")
if ret == 0:
print("[HPPTEST] HPPTEST PASSES.")