Browse Source

Fixed cause of ios _main not found.

Mark Sibly 7 years ago
parent
commit
3b56756afd
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/mx2cc/buildproduct.monkey2

+ 2 - 0
src/mx2cc/buildproduct.monkey2

@@ -443,6 +443,7 @@ Class GccBuildProduct Extends BuildProduct
 			Endif
 			Endif
 			
 			
 			'A bit dodgy - rip out -arch's from ios
 			'A bit dodgy - rip out -arch's from ios
+			#rem
 			If opts.target="ios"
 			If opts.target="ios"
 				Repeat
 				Repeat
 					Local i0:=cmd.Find( " -arch "  )
 					Local i0:=cmd.Find( " -arch "  )
@@ -453,6 +454,7 @@ Class GccBuildProduct Extends BuildProduct
 				Forever
 				Forever
 				If opts.arch<>"x64" cmd+=" -arch armv7"
 				If opts.arch<>"x64" cmd+=" -arch armv7"
 			Endif
 			Endif
+			#end
 			
 			
 			cmd+=" -MMD -MF~q"+deps+"~q"
 			cmd+=" -MMD -MF~q"+deps+"~q"
 			cmd+=" -o ~q"+obj+"~q ~q"+src+"~q"
 			cmd+=" -o ~q"+obj+"~q ~q"+src+"~q"