Skip to content

Commit 1ca5211

Browse files
committed
[optimize] add __ICCARM__=1 for iar arm
1 parent ff6853e commit 1ca5211

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ToolchainManager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,9 @@ class IARARM implements IToolchian {
17351735
}
17361736

17371737
getInternalDefines<T extends BuilderConfigData>(builderCfg: T, builderOpts: ICompileOptions): string[] {
1738-
return [];
1738+
return [
1739+
'__ICCARM__=1'
1740+
];
17391741
}
17401742

17411743
getCustomDefines(): string[] | undefined {

0 commit comments

Comments
 (0)