Add support for cpp in for compute#1773
Conversation
0e1f5e1 to
fee97db
Compare
kpfleming
left a comment
There was a problem hiding this comment.
One extraneous file, and a couple of 'nice to have' improvements. Otherwise this looks great.
philippschulte
left a comment
There was a problem hiding this comment.
Some of my findings are the same as Kevin's:
- Please remove the committed
fastly-devbinary from the repo root. cppis now exposed incompute init, but I do not see matching C++ starter-kit config. This could break the init flow if the starter-kit list is empty.- The new
config.CPPdefaults do not appear to be added to the static/generated config, so real users may get empty C++ config values. WasmWasiTargetis defined but not used; either use it in the default build command or remove it for now.- Add an init test for
--language cpp, especially covering the no-starter-kit case.
We don't have starter kits yet, that will happen next week. We do know what their URLs will be though, if those need to be included in the build. |
|
made changes
kpfleming
left a comment
There was a problem hiding this comment.
One very small change and this is ready to go; the tests will fail until the starter kits are made public, so we can either just accept that for a couple of weeks or skip them for now.
philippschulte
left a comment
There was a problem hiding this comment.
Thanks for the updates. Point 4 still looks unresolved to me.
I see wasm_wasi_target is now present in .fastly/config.toml and mapped onto config.CPP.WasmWasiTarget, but I do not see that value being read anywhere in the C++ build path. The default build command still hardcodes wasm32-wasip1:
var CPPDefaultBuildCommand = fmt.Sprintf("clang++ -O3 --target=wasm32-wasip1 -o %s main.cpp", binWasmPath)and Build() assigns that constant directly when [scripts.build] is missing.
So unless I am missing another code path, WasmWasiTarget is configured but currently unused.
|
@philippschulte you're right, i missed the hardcoded value not being used, added support in |
Change summary
Adds ability to build C++ services and publish them
test service here
All Submissions:
New Feature Submissions:
Changes to Core Features: