So when I do shermes ./my_javascript_source.js I get the error with the inclue:
#include "libhermesvm-config.h"
I can step through the code and see what is happening. The Javascript is compiled into C. A temporary C file is created called my_javascript_source.js-3289d8.c which looks like:
#include "hermes/VM/static_h.h"
#include <stdlib.h>
/* REST OF C CODE */
And I think that hermes/VM/static_h.h being included is the problem, or a transitively included file.
Here is the full error:
In file included from /media/moe/14E610DDE610C142/MyProgrammingFiles/Deps/hermes-static_h/include/hermes/VM/sh_legacy_value.h:113,
from /media/moe/14E610DDE610C142/MyProgrammingFiles/Deps/hermes-static_h/include/hermes/VM/static_h.h:12,
from /tmp/my_javascript_source.js-3289d8.c:2:
/media/moe/14E610DDE610C142/MyProgrammingFiles/Deps/hermes-static_h/include/hermes/VM/sh_config.h:11:10: fatal error: libhermesvm-config.h: No such file or directory
11 | #include "libhermesvm-config.h"
I built my project by simply doing add_subdirectory on the main respository folder, and generally things are working OK (the include paths seems to have been taken care of).
I am on latest version of Linux Mint.
So when I do shermes ./my_javascript_source.js I get the error with the inclue:
#include "libhermesvm-config.h"I can step through the code and see what is happening. The Javascript is compiled into C. A temporary C file is created called my_javascript_source.js-3289d8.c which looks like:
And I think that hermes/VM/static_h.h being included is the problem, or a transitively included file.
Here is the full error:
I built my project by simply doing add_subdirectory on the main respository folder, and generally things are working OK (the include paths seems to have been taken care of).
I am on latest version of Linux Mint.