diff options
| author | ruki <[email protected]> | 2021-05-16 10:50:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-05-16 10:50:40 +0800 |
| commit | b33c4401bfa0cab929bf45fef4d4a0b949e6be7c (patch) | |
| tree | 053516339b77085d79ee158cf0bfee5977f8a3a2 | |
| parent | 6f975893c3513fcf1f7fc22ec105f7131bacad29 (diff) | |
improve xmake_cli rule
| -rw-r--r-- | xmake/rules/xmake_cli/xmake.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/xmake_cli/xmake.lua b/xmake/rules/xmake_cli/xmake.lua index d98383e7a..cab9d16f5 100644 --- a/xmake/rules/xmake_cli/xmake.lua +++ b/xmake/rules/xmake_cli/xmake.lua @@ -77,7 +77,7 @@ rule("xmake.cli") os.setenv("XMAKE_MODULES_DIR", scriptdir) end local libxmake = target:pkg("libxmake") - local programdir = path.join(path.directory(libxmake:get("linkdirs")), "share", "xmake") + local programdir = path.join(libxmake:installdir(), "share", "xmake") assert(os.isdir(programdir), "%s not found!", programdir) os.setenv("XMAKE_PROGRAM_DIR", programdir) end) |
