https://github.com/learnforpractice/cxxflags-example
https://github.com/learnforpractice/cxxflags-example
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/learnforpractice/cxxflags-example
- Owner: learnforpractice
- Created: 2021-10-31T02:03:53.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-31T02:25:05.000Z (over 4 years ago)
- Last Synced: 2024-12-29T07:26:19.992Z (over 1 year ago)
- Language: Go
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Example show why cxxflags is necessary.
Define `-std=c++17` in cxxflags, no complain from tinygo
```bash
tinygo build -target=./good.json -o test.wasm .
```
Define `-std=c++17` in cflags, show `error: invalid argument '-std=c++17' not allowed with 'C'` error
```bash
tinygo build -target=./bad.json -o test.wasm .
```