mirror of
https://github.com/CHN-beta/hpcstat.git
synced 2026-01-11 02:09:24 +08:00
fix build
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
{
|
{
|
||||||
packages.x86_64-linux = rec
|
packages.x86_64-linux = rec
|
||||||
{
|
{
|
||||||
hpcstat = pkgs.stdenv.mkDerivation
|
hpcstat = pkgs.pkgsStatic.stdenv.mkDerivation
|
||||||
{
|
{
|
||||||
name = "hpcstat";
|
name = "hpcstat";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
# include <chrono>
|
# include <chrono>
|
||||||
# include <boost/filesystem.hpp>
|
# include <boost/filesystem.hpp>
|
||||||
# include <boost/process.hpp>
|
# include <boost/process.hpp>
|
||||||
|
# include <boost/dll.hpp>
|
||||||
# include <fmt/format.h>
|
# include <fmt/format.h>
|
||||||
# include <fmt/ranges.h>
|
# include <fmt/ranges.h>
|
||||||
# include <zxorm/zxorm.hpp>
|
# include <zxorm/zxorm.hpp>
|
||||||
@@ -163,7 +164,7 @@ std::optional<std::string> subaccount()
|
|||||||
int main(int argc, const char** argv)
|
int main(int argc, const char** argv)
|
||||||
{
|
{
|
||||||
std::vector<std::string> args(argv, argv + argc);
|
std::vector<std::string> args(argv, argv + argc);
|
||||||
Program = args[0];
|
Program = boost::dll::program_location().string();
|
||||||
|
|
||||||
if (args.size() == 1) { std::cout << "Usage: hpcstat initdb|login|logout|submitjob|finishjob\n"; return 1; }
|
if (args.size() == 1) { std::cout << "Usage: hpcstat initdb|login|logout|submitjob|finishjob\n"; return 1; }
|
||||||
else if (args[1] == "initdb")
|
else if (args[1] == "initdb")
|
||||||
|
|||||||
Reference in New Issue
Block a user