blob: f12a0cd74524672a1eea93e8a554c438d8ccf4b7 [file] [log] [blame]
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/maybe-standalone-test/maybe-standalone.h>
#include <lib/standalone-test/standalone.h>
#include <lib/zx/resource.h>
// Redeclare the standalone-test function as weak here.
[[gnu::weak]] decltype(standalone::GetBootOptions) standalone::GetBootOptions;
namespace maybe_standalone {
const BootOptions* GetBootOptions() {
if (!standalone::GetBootOptions) {
return nullptr;
}
return &standalone::GetBootOptions();
}
} // namespace maybe_standalone