beremiz

Parents c54b0631cb8a
Children bc39a871d356
ToolChain: add IEC library include paths to CFLAGS when building C code from extensions.
--- a/ProjectController.py Thu Jun 26 14:50:33 2025 +0200
+++ b/ProjectController.py Thu Jun 26 16:47:08 2025 +0200
@@ -1259,6 +1259,13 @@
self.logger.write_error(traceback.format_exc())
return False
+ # Extensions also need plcCFLAGS in case they include matiec's definitions
+ 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