Hi all, I have issue with gitlab-ci when trying to build the C++ source code with node-gyp.
My code is using dynamic_cast method for casting the base class pointer to the extend class pointer. However, gitlab-ci could not build successfully. It threw the error:
error: 'dynamic_cast' not permitted with -fno-rtti
Here is my
image: node stages: - build - test build: stage: build script: - npm install --unsafe-perm artifacts: paths: - ./build/Release/integrationtest except: - develop test1: stage: test dependencies: - build script: - ./build/Release/integrationtest except: - develop
The command line
npm install will install all necessary dependencies, then run the command
node-gyp rebuild .
How can I solve that no-rtti issue? Is there a way to change the option of gcc to -frtti while we are using node-gyp to compile the code?
Thank you in advance.