build: fix comment on scanner.generate() versions
This commit is contained in:
		@ -97,8 +97,11 @@ pub fn build(b: *Build) !void {
 | 
				
			|||||||
    scanner.addCustomProtocol("protocol/wlr-layer-shell-unstable-v1.xml");
 | 
					    scanner.addCustomProtocol("protocol/wlr-layer-shell-unstable-v1.xml");
 | 
				
			||||||
    scanner.addCustomProtocol("protocol/wlr-output-power-management-unstable-v1.xml");
 | 
					    scanner.addCustomProtocol("protocol/wlr-output-power-management-unstable-v1.xml");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // These must be manually kept in sync with the versions wlroots supports
 | 
					    // Some of these versions may be out of date with what wlroots implements.
 | 
				
			||||||
    // until wlroots gives the option to request a specific version.
 | 
					    // This is not a problem in practice though as long as river successfully compiles.
 | 
				
			||||||
 | 
					    // These versions control Zig code generation and have no effect on anything internal
 | 
				
			||||||
 | 
					    // to wlroots. Therefore, the only thnig that can happen due to a version being too
 | 
				
			||||||
 | 
					    // old is that river fails to compile.
 | 
				
			||||||
    scanner.generate("wl_compositor", 4);
 | 
					    scanner.generate("wl_compositor", 4);
 | 
				
			||||||
    scanner.generate("wl_subcompositor", 1);
 | 
					    scanner.generate("wl_subcompositor", 1);
 | 
				
			||||||
    scanner.generate("wl_shm", 1);
 | 
					    scanner.generate("wl_shm", 1);
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user