mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Add --with-lto back to Linux JIT CI (GH-120921)
This commit is contained in:
		
							parent
							
								
									e4a97a7fb1
								
							
						
					
					
						commit
						fd0f814ade
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		
							
								
								
									
										6
									
								
								.github/workflows/jit.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/jit.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -133,17 +133,15 @@ jobs:
 | 
			
		|||
          make all --jobs 4
 | 
			
		||||
          ./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
 | 
			
		||||
 | 
			
		||||
      # --with-lto has been removed temporarily as a result of an open issue in LLVM 18 (see https://github.com/llvm/llvm-project/issues/87553)
 | 
			
		||||
      - name: Native Linux
 | 
			
		||||
        if: runner.os == 'Linux' && matrix.architecture == 'x86_64'
 | 
			
		||||
        run: |
 | 
			
		||||
          sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
 | 
			
		||||
          export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
 | 
			
		||||
          ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '--enable-optimizations' }}
 | 
			
		||||
          ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '--enable-optimizations --with-lto' }}
 | 
			
		||||
          make all --jobs 4
 | 
			
		||||
          ./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
 | 
			
		||||
 | 
			
		||||
      # --with-lto has been removed temporarily as a result of an open issue in LLVM 18 (see https://github.com/llvm/llvm-project/issues/87553)
 | 
			
		||||
      - name: Emulated Linux
 | 
			
		||||
        if: runner.os == 'Linux' && matrix.architecture != 'x86_64'
 | 
			
		||||
        # The --ignorefile on ./python -m test is used to exclude tests known to fail when running on an emulated Linux.
 | 
			
		||||
| 
						 | 
				
			
			@ -161,7 +159,7 @@ jobs:
 | 
			
		|||
          CC="${{ matrix.compiler == 'clang' && 'clang --target=$HOST' || '$HOST-gcc' }}" \
 | 
			
		||||
            CPP="$CC --preprocess" \
 | 
			
		||||
            HOSTRUNNER=qemu-${{ matrix.architecture }} \
 | 
			
		||||
            ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '--enable-optimizations ' }} --build=x86_64-linux-gnu --host="$HOST" --with-build-python=../build/bin/python3 --with-pkg-config=no ac_cv_buggy_getaddrinfo=no ac_cv_file__dev_ptc=no ac_cv_file__dev_ptmx=yes
 | 
			
		||||
            ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '--enable-optimizations --with-lto' }} --build=x86_64-linux-gnu --host="$HOST" --with-build-python=../build/bin/python3 --with-pkg-config=no ac_cv_buggy_getaddrinfo=no ac_cv_file__dev_ptc=no ac_cv_file__dev_ptmx=yes
 | 
			
		||||
          make all --jobs 4
 | 
			
		||||
          ./python -m test --ignorefile=Tools/jit/ignore-tests-emulated-linux.txt --multiprocess 0 --timeout 4500 --verbose2 --verbose3
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue