New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++ / CMake broken for Smart Configurator #256
Comments
Hi @saltyJeff which version of RASC and FSP are you using? |
RASC version:
FSP version is 4.2.0 |
@saltyJeff - please can you try with RASC 2023-01, as shipped in FSP 4.3.0. I think this should resolve your issue. |
Hello @renesas-andyb we are currently looking at other mcu offerings so I may be slow to reply in the future. Found another bug on v4.3.0, you're missing a I also noticed there's a new One final question, is there a way to make RASC generate code in release-mode? The CXX_FLAGS still has |
Hi @saltyJeff
Yes, I've found for some project types you may need to add
to the
Aha, thanks for the hint; I'm still very new to VSCode. I will see what options we can move over into that file. In the meantime it should be safe to move the settings.json if you wish -- RASC will not try to regenerate it.
Not yet, but I will raise this internally. Support for the other IDEs does include generation of both Debug and Release configurations, so I think this is definitely a deficiency in CMake project generation. |
hi @mbooth101
|
There's a line in
Why all include dir is hard-coded here, and the |
In file
When build c++ project, linker shoule be set to |
Fixes for these issues are currently scheduled for the e2 studio 2024-04 release which should align with the FSP v5.3.0 release. |
When I create a new project using the RA Smart Configurator with C++ support enabled and the CMake option selected, the resulting CMakeLists.txt looks like this:
C++ is not included in the enable_language, even though
src/hal_entry.cpp
is createdWhen I try to build, the compiler throws the following error:
'-std=c99' is valid for C/ObjC but not for C++
Because the output
RASC_CMAKE_CXX_FLAGS
is invalid.Normally these settings wouldn't be an issue, but all the compiler flags are stored together into 1 giant string in
cmake/GeneratedCfg.cmake
, and it is a hassle having to filter out the useful flags (-mcpu -D_RA_CORE_
) from the flags that I don't need (-Wxxx
) and the flags that create a bunch of temporary makefiles.The text was updated successfully, but these errors were encountered: