ProjectController.py
branchwxPython4
changeset 3612 428fb2472f43
parent 3580 0c96269bf63b
child 3747 1db10e9df882
--- 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