Fix status code of generated Makefile #1265
Labels
area: configure/compiling
Issue involves configuring or compilating Verilator itself
resolution: fixed
Closed; fixed
Author Name: Stefan Wallentowitz (@wallento)
Original Redmine Issue: 1265 from https://www.veripool.org
Original Assignee: Stefan Wallentowitz (@wallento)
Hi Wilson,
we use verilator in a larger build process that is driven by a script. It aborts on any error, but the build of the verilated simulation does not return a non-zero status code on linker errors. The reason is that the output of the linker is piped through c++filt. The status code is then the status code of c++filt which is 0 on a linker error too apparently.
Hence I prepared a simple fix to this by generating a different linker command in the Makefile in the attached patch. I know this is not nice, but in my opinion the nicest solution among the options to solve it (except maybe removing c++filt..). I am open to change it to a different way of handling it.
I also attach a minimal example.
Cheers,
Stefan
The text was updated successfully, but these errors were encountered: