forked from OSchip/llvm-project
				
			[asan] Fix asan_device_setup on KitKat.
"ln" from toybox does not understand -f (force) flag. llvm-svn: 318573
This commit is contained in:
		
							parent
							
								
									6810c20c1b
								
							
						
					
					
						commit
						0b44f44bcf
					
				| 
						 | 
				
			
			@ -419,15 +419,18 @@ if ! ( cd "$TMPDIRBASE" && diff -qr old/ new/ ) ; then
 | 
			
		|||
      install "$TMPDIR/asanwrapper" /system/bin 755
 | 
			
		||||
      install "$TMPDIR/asanwrapper64" /system/bin 755
 | 
			
		||||
 | 
			
		||||
      adb_shell ln -sf $ASAN_RT /system/lib/$ASAN_RT_SYMLINK
 | 
			
		||||
      adb_shell ln -sf $ASAN_RT64 /system/lib64/$ASAN_RT_SYMLINK
 | 
			
		||||
      adb_shell rm -f /system/lib/$ASAN_RT_SYMLINK
 | 
			
		||||
      adb_shell ln -s $ASAN_RT /system/lib/$ASAN_RT_SYMLINK
 | 
			
		||||
      adb_shell rm -f /system/lib64/$ASAN_RT_SYMLINK
 | 
			
		||||
      adb_shell ln -s $ASAN_RT64 /system/lib64/$ASAN_RT_SYMLINK
 | 
			
		||||
    else
 | 
			
		||||
      install "$TMPDIR/$ASAN_RT" /system/lib 644
 | 
			
		||||
      install "$TMPDIR/app_process32" /system/bin 755 $CTX
 | 
			
		||||
      install "$TMPDIR/app_process.wrap" /system/bin 755 $CTX
 | 
			
		||||
      install "$TMPDIR/asanwrapper" /system/bin 755 $CTX
 | 
			
		||||
 | 
			
		||||
      adb_shell ln -sf $ASAN_RT /system/lib/$ASAN_RT_SYMLINK
 | 
			
		||||
      adb_shell rm -f /system/lib/$ASAN_RT_SYMLINK
 | 
			
		||||
      adb_shell ln -s $ASAN_RT /system/lib/$ASAN_RT_SYMLINK
 | 
			
		||||
 | 
			
		||||
      adb_shell rm /system/bin/app_process
 | 
			
		||||
      adb_shell ln -s /system/bin/app_process.wrap /system/bin/app_process
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue