Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In a previous PR (#590) I had to overwrite the
FAASM_SGX
CMake variable to set it toON
explicitly to make sure the SGX code was being built and tested. My fix was too brute, and broke the option to disable the SGX build, which is why the flag was introduced in the first place.The crux of the problem is that, even though the default value is now
ON
, it is cached (inCMakeCache.txt
) asOFF
from when the container image was built. As a consequence, if we don't setFAASM_SGX
toON
explicitely, it will be set toOFF
. As a proof of concept, I print all cached variables in an action run, where we can see thatFAASM_SGX
is set to OFF.One possible workaround is to re-build the container images with a different default value, so that it gets properly cached. Another workaround (the one I have chosen) is to
unset
the variable from the CMake cache so that it is either the default (ON
) orOFF
if overriden from the command line.Relevant links: