From a23408d57a8bf5d09e0c562c9d1bd032f5e217c7 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Mon, 18 Dec 2023 23:05:46 +0100 Subject: [PATCH] rusticl: do not warn on empty RUSTICL_DEBUG or RUSTICL_FEATURES Fixes: b90d1cfbfea ("rusticl/platform: add RUSTICL_FEATURES boilerplate") Fixes: ca1e9917a9b ("rusticl/program: allow dumping compilation logs through RUSTICL_DEBUG") Signed-off-by: Karol Herbst Part-of: (cherry picked from commit 382718e0e1493ae9d654a667f4c5a75ac86422b6) --- .pick_status.json | 2 +- src/gallium/frontends/rusticl/core/platform.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 136bb42..33b7de9 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -244,7 +244,7 @@ "description": "rusticl: do not warn on empty RUSTICL_DEBUG or RUSTICL_FEATURES", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "b90d1cfbfea9fe40e2ec6d44e788ab27ff213e2a", "notes": null diff --git a/src/gallium/frontends/rusticl/core/platform.rs b/src/gallium/frontends/rusticl/core/platform.rs index 24f60f2..d960509 100644 --- a/src/gallium/frontends/rusticl/core/platform.rs +++ b/src/gallium/frontends/rusticl/core/platform.rs @@ -79,6 +79,7 @@ fn load_env() { "clc" => debug.clc = true, "program" => debug.program = true, "sync" => debug.sync_every_event = true, + "" => (), _ => eprintln!("Unknown RUSTICL_DEBUG flag found: {}", flag), } } @@ -90,6 +91,7 @@ fn load_env() { match flag { "fp16" => features.fp16 = true, "fp64" => features.fp64 = true, + "" => (), _ => eprintln!("Unknown RUSTICL_FEATURES flag found: {}", flag), } } -- 2.7.4