Skip to content

Commit fab205d

Browse files
klemens-morgensternvinniefalco
authored andcommitted
fix: linux build
1 parent 9582ac1 commit fab205d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/Tool/ToolArgs.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class ToolArgs
6363
This is a global variable because of how the
6464
LLVM command line interface is designed.
6565
*/
66-
constexpr ToolArgs& toolArgs = ToolArgs::instance_;
66+
constexpr static ToolArgs& toolArgs = ToolArgs::instance_;
6767

6868
} // mrdox
6969
} // clang

source/Tool/ToolMain.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#include <mrdox/Support/Path.hpp>
3838
#include <mrdox/Support/Report.hpp>
3939
#include <mrdox/Version.hpp>
40-
#include <llvm/Support/Filesystem.h>
40+
#include <llvm/Support/FileSystem.h>
4141
#include <llvm/Support/Process.h>
4242
#include <llvm/Support/raw_ostream.h>
4343
#include <llvm/Support/Signals.h>
@@ -99,7 +99,7 @@ int main(int argc, char const** argv)
9999
else
100100
{
101101
// check process working directory
102-
addonsDir = fs::getMainExecutable(argv[0], &main);
102+
addonsDir = fs::getMainExecutable(argv[0], reinterpret_cast<void*>(&main));
103103
if(addonsDir.empty())
104104
{
105105
reportError(

0 commit comments

Comments
 (0)