Skip to content

Commit 51c4620

Browse files
kanami09HuPengtao
authored andcommitted
fix: set uAC6 flag correctly when exporting Keil project with AC6 toolchain
Previously uAC6 was always left as the template default (0/AC5), causing Keil to open the exported project with the wrong compiler.
1 parent bbed7d1 commit 51c4620

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/KeilXmlParser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,6 +1367,7 @@ class ARMParser extends KeilParser<KeilARMOption> {
13671367
}
13681368

13691369
target.TargetName = prjConfig.config.name;
1370+
target.uAC6 = prj.getToolchain().name === 'AC6' ? '1' : '0';
13701371
target.TargetOption.TargetCommonOption.Device = devName;
13711372
target.TargetOption.TargetCommonOption.Vendor = vendor;
13721373

0 commit comments

Comments
 (0)