mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:42:44 +00:00 
			
		
		
		
	Meta: Copy libc++ headers into the disk image
If we do this, the LLVM port's Clang will pick up these paths, so we won't have to compile libc++ twice. This does increase the size of _disk_image by 5 MB, but that shouldn't be a problem.
This commit is contained in:
		
							parent
							
								
									87d548c520
								
							
						
					
					
						commit
						c4707ed0d9
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -50,9 +50,10 @@ LLVM_VERSION="${LLVM_VERSION:-13.0.0}" | |||
| 
 | ||||
| if [ "$SERENITY_TOOLCHAIN" = "Clang" ]; then | ||||
|     TOOLCHAIN_DIR="$SERENITY_SOURCE_DIR"/Toolchain/Local/clang/ | ||||
|     mkdir -p mnt/usr/lib/clang/"$LLVM_VERSION"/lib/serenity | ||||
|     $CP "$TOOLCHAIN_DIR"/lib/clang/"$LLVM_VERSION"/lib/"$SERENITY_ARCH"-pc-serenity/* mnt/usr/lib/clang/"$LLVM_VERSION"/lib/serenity | ||||
|     $CP "$TOOLCHAIN_DIR"/lib/"$SERENITY_ARCH"-pc-serenity/* mnt/usr/lib | ||||
|     mkdir -p mnt/usr/include/"$SERENITY_ARCH"-pc-serenity | ||||
|     $CP -r "$TOOLCHAIN_DIR"/include/c++ mnt/usr/include | ||||
|     $CP -r "$TOOLCHAIN_DIR"/include/"$SERENITY_ARCH"-pc-serenity/c++ mnt/usr/include/"$SERENITY_ARCH"-pc-serenity | ||||
| elif [ "$SERENITY_ARCH" != "aarch64" ]; then | ||||
|     $CP "$SERENITY_SOURCE_DIR"/Toolchain/Local/"$SERENITY_ARCH"/"$SERENITY_ARCH"-pc-serenity/lib/libgcc_s.so mnt/usr/lib | ||||
| fi | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Daniel Bertalan
						Daniel Bertalan