pyodide/packages/cpp-exceptions-test/meta.yaml

15 lines
467 B
YAML
Raw Normal View History

package:
name: cpp-exceptions-test
version: "0.1"
_tag: pyodide.test
source:
path: src
build:
sharedlibrary: true
script: |
em++ -c throw.cpp -o throw.o ${SIDE_MODULE_CFLAGS} -fexceptions
em++ -c catch.cpp -o catch.o ${SIDE_MODULE_CFLAGS} -fexceptions
mkdir dist
em++ throw.o ${SIDE_MODULE_LDFLAGS} -o dist/cpp-exceptions-test-throw.so -fexceptions
em++ catch.o ${SIDE_MODULE_LDFLAGS} -o dist/cpp-exceptions-test-catch.so -fexceptions