diff options
| author | ruki <[email protected]> | 2021-10-18 19:07:39 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-18 19:07:39 +0800 |
| commit | 7e6fba5fe7662b4e58ce150aeab17c70b6b12254 (patch) | |
| tree | 616b20f34a515e45bcf5d14fad7b903006489454 /xmake/rules/c++/unity_build/unity_build.lua | |
| parent | 1ec16d7882188dd817ccb23be43359aa4d045d24 (diff) | |
Update unity_build.lua
Diffstat (limited to 'xmake/rules/c++/unity_build/unity_build.lua')
| -rw-r--r-- | xmake/rules/c++/unity_build/unity_build.lua | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/xmake/rules/c++/unity_build/unity_build.lua b/xmake/rules/c++/unity_build/unity_build.lua index 2d8e69d5d..608f79fed 100644 --- a/xmake/rules/c++/unity_build/unity_build.lua +++ b/xmake/rules/c++/unity_build/unity_build.lua @@ -36,9 +36,7 @@ function _merge_unityfile(target, sourcefile_unity, sourcefiles, opt) sourcefile_unity = path.absolute(sourcefile_unity) sourcefile = path.relative(sourcefile, path.directory(sourcefile_unity)) if uniqueid then - unityfile:print("#ifndef %s", uniqueid) unityfile:print("#define %s %s", uniqueid, "unity_" .. hash.uuid():split("-", {plain = true})[1]) - unityfile:print("#endif") end unityfile:print("#include \"%s\"", sourcefile) if uniqueid then |
