Skip to content

Commit

Permalink
fix: linux build
Browse files Browse the repository at this point in the history
klemens-morgenstern authored and vinniefalco committed Jun 12, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 9582ac1 commit fab205d
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/Tool/ToolArgs.hpp
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ class ToolArgs
This is a global variable because of how the
LLVM command line interface is designed.
*/
constexpr ToolArgs& toolArgs = ToolArgs::instance_;
constexpr static ToolArgs& toolArgs = ToolArgs::instance_;

} // mrdox
} // clang
4 changes: 2 additions & 2 deletions source/Tool/ToolMain.cpp
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@
#include <mrdox/Support/Path.hpp>
#include <mrdox/Support/Report.hpp>
#include <mrdox/Version.hpp>
#include <llvm/Support/Filesystem.h>
#include <llvm/Support/FileSystem.h>
#include <llvm/Support/Process.h>
#include <llvm/Support/raw_ostream.h>
#include <llvm/Support/Signals.h>
@@ -99,7 +99,7 @@ int main(int argc, char const** argv)
else
{
// check process working directory
addonsDir = fs::getMainExecutable(argv[0], &main);
addonsDir = fs::getMainExecutable(argv[0], reinterpret_cast<void*>(&main));
if(addonsDir.empty())
{
reportError(

0 comments on commit fab205d

Please sign in to comment.