Compare commits

2 Commits
main ... main

Author SHA1 Message Date
cf26741c41 CFLAGS 2026-07-21 03:22:24 +00:00
ffd9b25439 CFLAGS 2026-07-21 03:21:09 +00:00
2 changed files with 282 additions and 282 deletions

View File

@ -252,7 +252,7 @@ export class MakeExporter extends Exporter {
this.p(name + '.o: ' + realfile);
let compiler = this.cppCompiler;
let flags = '$(CPPFLAGS)';
let flags = '$(CFLAGS)';
if (file.endsWith('.c')) {
compiler = this.cCompiler;
flags = '$(CFLAGS)';
@ -263,11 +263,11 @@ export class MakeExporter extends Exporter {
}
else if (file.endsWith('.m') || file.endsWith('.m.h')) {
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');

View File

@ -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');
}