Commit 73bfacc4 authored by Tom Niget's avatar Tom Niget

Add standard to cppflags, exclude pipenv from pyproject

parent 5e3d1082
......@@ -26,6 +26,22 @@ This repository, TODO.
Install the dependencies using `pip3 install -r requirements.txt`.
## Basic usage
Typon can be used from the command-line to compile a Python file:
```
typon [-o/--output output] [-d/--debug] [-v/--verbose] input
```
Once generated, the C++ code file can be compiled using your compiler of choice:
```
$(CXX) -O3 $(typon --cpp-flags) input.cpp
```
Note: gcc may require the `-fcoroutines` flag.
## Test harness
`cd` into the `trans` directory, set up your `.env` file (you can copy the `.env.example` file), and run `python3 test_runner.py`.
......
......@@ -25,3 +25,5 @@ typon = "typon.trans.main:main"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
exclude = ["pipenv"]
......@@ -51,7 +51,7 @@ def main():
include_dirs = list(dict.fromkeys(include_dirs))
cpp_flags = [
*["-I" + d for d in include_dirs],
"-pthread", "-luring", "-lfmt", "-lssl", "-lcrypto", "-lpython3.10"
"-pthread", "-luring", "-lfmt", "-lssl", "-lcrypto", "-lpython3.10", "-std=c++20"
]
print(" ".join(cpp_flags))
exit(0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment