Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c++17-ed #1

Merged
merged 2 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/build_nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:

- name: "Build/Test" # contains slash so use quotes otherwise UB
run: |
python3 -V
curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_nix
chmod +x mkn
KLOG=3 ./mkn
KLOG=3 ./mkn clean build -p mod -dtOa "-std=c++17 -fPIC"
python3 py.py
3 changes: 2 additions & 1 deletion .github/workflows/build_osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:

- name: "Build/Test" # contains slash so use quotes otherwise UB
run: |
python3 -V
curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_osx
chmod +x mkn
KLOG=3 ./mkn
KLOG=3 ./mkn clean build -p mod -dtOa "-std=c++17 -fPIC"
python3 py.py
3 changes: 2 additions & 1 deletion .github/workflows/build_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
MKN_CL_PREFERRED: 1
run: | # /bin/link interferes with cl/link.exe
bash -c "rm /bin/link"
bash -c "python3 -V"
bash -c "curl -Lo mkn.exe https://github.com/mkn/mkn/releases/download/latest/mkn.exe"
bash -c "KLOG=3 ./mkn"
bash -c "KLOG=3 ./mkn clean build -p mod -dtOa "-std:c++17 -EHsc"
bash -c "python3 py.py"
10 changes: 3 additions & 7 deletions mkn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ name: lang.nanobind
parent: lib

profile:
- name: base
if_arg:
nix: -fPIC

- name: lib
parent: base
inc: |
b/include
b/ext/robin_map/include, 0
Expand All @@ -19,11 +14,12 @@ profile:
sub: nanobind&b(https://github.com/wjakob/nanobind)

- name: mod
parent: base
src: mod.cpp
self: lib
mode: none
mod: lang.python3 lang.pybind11
out: my_ext
install: .
env: MKN_LIB_LINK_LIB=1
env: |
MKN_LIB_LINK_LIB=1
MKN_PYTHON_LIB_EMBED=1
Loading