Skip to content

Commit

Permalink
Use Foundation library
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharkes committed Jun 26, 2024
1 parent 647a237 commit 77116c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions pkgs/native_toolchain_c/lib/src/cbuilder/run_cbuilder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,6 @@ class RunCBuilder {
await runProcess(
executable: compiler.uri,
arguments: [
if (language == Language.objectiveC) ...[
'-x',
'objective-c',
],
if (buildConfig.targetOS == OS.android) ...[
'--target='
'${androidNdkClangTargetFlags[architecture]!}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ NSInteger add(NSInteger a, NSInteger b) {
#ifdef DEBUG
printf("Adding %ld and %ld.\n", (long)a, (long)b);
#endif
return a + b;
// Use NSNumber from Foundation to test the frameworks flags.
return [[NSNumber numberWithInteger:(a + b)] longValue];
}

0 comments on commit 77116c3

Please sign in to comment.