mirror of
				https://github.com/rubyjs/libv8
				synced 2023-03-27 23:21:48 -04:00 
			
		
		
		
	Build automation fixes
This commit is contained in:
		
							parent
							
								
									f0c096d955
								
							
						
					
					
						commit
						77dcc0ea51
					
				
					 3 changed files with 6 additions and 5 deletions
				
			
		
							
								
								
									
										5
									
								
								Rakefile
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								Rakefile
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -117,9 +117,10 @@ task :repack, [:gemfile, :new_arch] do |t, args|
 | 
			
		|||
    sh "gem unpack #{args[:gemfile]} --target=#{dir}"
 | 
			
		||||
    sh "gem spec #{args[:gemfile]} --ruby > #{dir}/repack.gemspec"
 | 
			
		||||
    Dir.chdir(dir) do
 | 
			
		||||
      sh "sed -i 's/^  s.platform = .*$/  s.platform = \"#{args[:new_arch]}\".freeze/' repack.gemspec"
 | 
			
		||||
      sh "sed -iorig 's/^  s.platform = .*$/  s.platform = \"#{args[:new_arch]}\".freeze/' repack.gemspec"
 | 
			
		||||
      Dir.chdir(Dir.glob("libv8-*/").first) do
 | 
			
		||||
        sh 'gem build ../repack.gemspec'
 | 
			
		||||
        sh 'mv ../repack.gemspec ./'
 | 
			
		||||
        sh 'gem build repack.gemspec'
 | 
			
		||||
      end
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								release/x86-linux/Vagrantfile
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								release/x86-linux/Vagrantfile
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -55,7 +55,7 @@ Vagrant.configure(2) do |config|
 | 
			
		|||
  # View the documentation for the provider you are using for more
 | 
			
		||||
  # information on available options.
 | 
			
		||||
  config.vm.provider :virtualbox do |vb|
 | 
			
		||||
    vb.memory = "2048"
 | 
			
		||||
    vb.memory = "4096"
 | 
			
		||||
    vb.cpus = 4
 | 
			
		||||
    vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
 | 
			
		||||
    vb.customize ["modifyvm", :id, "--audio", "none"]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								release/x86_64-linux/Vagrantfile
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								release/x86_64-linux/Vagrantfile
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -55,8 +55,8 @@ Vagrant.configure(2) do |config|
 | 
			
		|||
  # View the documentation for the provider you are using for more
 | 
			
		||||
  # information on available options.
 | 
			
		||||
  config.vm.provider :virtualbox do |vb|
 | 
			
		||||
    vb.cpus = 4
 | 
			
		||||
    vb.memory = "2048"
 | 
			
		||||
    vb.cpus = 8
 | 
			
		||||
    vb.memory = "4096"
 | 
			
		||||
    vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
 | 
			
		||||
    vb.customize ["modifyvm", :id, "--audio", "none"]
 | 
			
		||||
    vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue