Skip to content

Commit

Permalink
Only write clink_commit.h file when generating a workspace.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisant996 committed Aug 13, 2022
1 parent b4950f5 commit 6d8ab1d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ local function write_clink_commit_file(commit)
end
end



--------------------------------------------------------------------------------
clink_git_name, clink_git_commit = get_git_info()
if _ACTION and (_ACTION:find("^vs") or _ACTION:find("^gmake")) then
clink_git_name, clink_git_commit = get_git_info()
write_clink_commit_file(clink_git_commit)
end

-- Ideally I want to write clink_commit.h only when generating a workspace.
-- But for now it runs on _ALL_ actions.
write_clink_commit_file(clink_git_commit)


--------------------------------------------------------------------------------
workspace("clink")
configurations({"debug", "release", "final"})
platforms({"x32", "x64"})
Expand Down

0 comments on commit 6d8ab1d

Please sign in to comment.