Fix compiler flags in Linux presubmit
CXX_FLAGS should be CXXFLAGS and the quoting was wrong. As a result, "-Werror -Wdeprecated" was not being applied. https://cmake.org/cmake/help/latest/envvar/CXXFLAGS.html PiperOrigin-RevId: 506656655 Change-Id: Ic5e861be3b9c32257eb9aabb845c931f3cba7122
This commit is contained in:
		
				
					committed by
					
						
						Copybara-Service
					
				
			
			
				
	
			
			
			
						parent
						
							deaf5615f1
						
					
				
				
					commit
					2f2e72bae9
				
			@@ -51,7 +51,7 @@ for cc in /usr/local/bin/gcc /opt/llvm/clang/bin/clang; do
 | 
				
			|||||||
      --workdir="/build" \
 | 
					      --workdir="/build" \
 | 
				
			||||||
      --rm \
 | 
					      --rm \
 | 
				
			||||||
      --env="CC=${cc}" \
 | 
					      --env="CC=${cc}" \
 | 
				
			||||||
      --env="CXX_FLAGS=\"-Werror -Wdeprecated\"" \
 | 
					      --env=CXXFLAGS="-Werror -Wdeprecated" \
 | 
				
			||||||
      ${LINUX_LATEST_CONTAINER} \
 | 
					      ${LINUX_LATEST_CONTAINER} \
 | 
				
			||||||
      /bin/bash -c "
 | 
					      /bin/bash -c "
 | 
				
			||||||
        cmake /src \
 | 
					        cmake /src \
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user