Skip to content

Commit a113448

Browse files
authored
Fixed broken debug build on Linux (lemonade-sdk#1593)
1 parent dbde812 commit a113448

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/cpp/server/recipe_options.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include <lemon/recipe_options.h>
2+
#ifndef LEMONADE_CLI
23
#include <lemon/system_info.h>
4+
#endif
35
#include <nlohmann/json.hpp>
46
#include <map>
57
#ifdef LEMONADE_CLI
@@ -67,6 +69,7 @@ static bool is_empty_option(json option) {
6769
(option.is_string() && (option == "" || option == "auto"));
6870
}
6971

72+
#ifndef LEMONADE_CLI
7073
static bool try_get_backend_options(const std::string& opt_name, SystemInfo::SupportedBackendsResult& result) {
7174
// Generic handling for any *_backend option
7275
// Pattern: {recipe}_backend -> get supported backends for {recipe}
@@ -83,6 +86,7 @@ static bool try_get_backend_options(const std::string& opt_name, SystemInfo::Sup
8386

8487
return is_backend_option;
8588
}
89+
#endif
8690

8791
std::vector<std::string> RecipeOptions::to_cli_options(const json& raw_options) {
8892
std::vector<std::string> cli;

0 commit comments

Comments
 (0)