vapi: Fix build when directory contains @ 57/36057/1
authorRenato Botelho do Couto <renato@netgate.com>
Wed, 27 Apr 2022 20:51:20 +0000 (17:51 -0300)
committerRenato Botelho do Couto <renato@netgate.com>
Wed, 27 Apr 2022 20:54:50 +0000 (17:54 -0300)
commited1f9adad793d327bc0245e14088ea8e50e54f26
tree01109f793a3740492799887d809fe48136af55e5
parent3bad8b62d87513c5f4004c3172551c8785c78e65
vapi: Fix build when directory contains @

During build some header guards are created based on full path where
build is happening.  If one directory contains @ character build breaks
because compiler believes it's a macro declaration.

Jenkins adds `@${EXECUTOR_NUMBER}` suffix to workspace directory when
it uses more than one executor for that job, breaking the build.

Replace any @ character on guard name by _ to get it fixed.

Type: fix
Change-Id: Id0f4cfc33fda95e168541aa4e353a0d08aa3b664
Signed-off-by: Renato Botelho do Couto <renato@netgate.com>
src/vpp-api/vapi/vapi_c_gen.py
src/vpp-api/vapi/vapi_cpp_gen.py