From cf26741c4175484cad454b017935562bafaf9166 Mon Sep 17 00:00:00 2001 From: Dante Date: Tue, 21 Jul 2026 03:22:24 +0000 Subject: [PATCH] CFLAGS --- lib/kmake/Exporters/MakeExporter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/kmake/Exporters/MakeExporter.js b/lib/kmake/Exporters/MakeExporter.js index d1e171f2..9d3939bf 100644 --- a/lib/kmake/Exporters/MakeExporter.js +++ b/lib/kmake/Exporters/MakeExporter.js @@ -209,7 +209,7 @@ class MakeExporter extends Exporter_1.Exporter { this.p('-include ' + name + '.d'); this.p(name + '.o: ' + realfile); let compiler = this.cppCompiler; - let flags = '$(CPPFLAGS)'; + let flags = '$(CFLAGS)'; if (file.endsWith('.c')) { compiler = this.cCompiler; flags = '$(CFLAGS)'; @@ -220,11 +220,11 @@ class MakeExporter extends Exporter_1.Exporter { } else if (file.endsWith('.m')) { compiler = this.cCompiler; - flags = '$(CPPFLAGS)'; + flags = '$(CFLAGS)'; } else if (file.endsWith('.mm')) { compiler = this.cppCompiler; - flags = '$(CPPFLAGS)'; + flags = '$(CFLAGS)'; } this.p('\t' + compiler + ' ' + optimization + ' $(INC) $(DEF) -MD ' + flags + ' -c ' + realfile + ' -o ' + name + '.o'); }