diff -r 2c041d3d6ee3 -r 428fb2472f43 ProjectController.py --- a/ProjectController.py Wed Sep 14 14:55:13 2022 +0200 +++ b/ProjectController.py Wed Sep 14 14:56:25 2022 +0200 @@ -1226,6 +1226,13 @@ self.logger.write_error(traceback.format_exc()) return False + # Extensions also need plcCFLAGS in case they include beremiz.h + CTNLocationCFilesAndCFLAGS = [ + (loc, [ + (code, self.plcCFLAGS+" "+cflags) + for code,cflags in code_and_cflags], do_calls) + for loc, code_and_cflags, do_calls in CTNLocationCFilesAndCFLAGS] + self.LocationCFilesAndCFLAGS = LibCFilesAndCFLAGS + \ CTNLocationCFilesAndCFLAGS self.LDFLAGS = CTNLDFLAGS + LibLDFLAGS