Code generation to C/C++ compiler option "fp:strict"

1 visualización (últimos 30 días)
Mansoor Aman
Mansoor Aman el 29 de En. de 2020
Comentada: Mansoor Aman el 30 de En. de 2020
When running codegen, the makefiles always have the "fp:strict" compiler option. Is there anyway to modify this option?
As a work-around, I can manually modify the makefile manually and re-run it.

Respuestas (1)

Darshan Ramakant Bhat
Darshan Ramakant Bhat el 30 de En. de 2020
I could not reproduce this in R2019b version of MATLAB (and I have not verified this is the case in the previous releases).
You can take a look at coder.updatebuildinfo function to modify the compiler flags.
You can try doing something like below if that is what you want :
You can also take a look at post-codegen-command :
Hope this will help you.
  1 comentario
Mansoor Aman
Mansoor Aman el 30 de En. de 2020
So the default *.mk file or file in: "C:\Program Files\MATLAB\R2017b\toolbox\coder\coder\mex\c" include this flag and so it works its way into the generated makefile.
For example, Matlab 2017b "" has this on line 18.

Iniciar sesión para comentar.


Más información sobre MATLAB Coder en Help Center y File Exchange.




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by