diff options
| author | ruki <[email protected]> | 2022-08-15 23:06:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-15 23:06:16 +0800 |
| commit | 170b4ff2ddd796c5ed51643690d6a3a141b9caa7 (patch) | |
| tree | 847a80c4352b74d059570bb7a5c46f0fa9af6a31 | |
| parent | 4e4559e121c1ea1387874809fb448548dc0dba80 (diff) | |
fix sourcekind for vs generator
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua index ce07549c0..dbeb9a9b5 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x.lua @@ -283,7 +283,7 @@ function _make_targetinfo(mode, arch, target, vcxprojdir) local sourcekind = sourcebatch.sourcekind if sourcekind then for idx, sourcefile in ipairs(sourcebatch.sourcefiles) do - local compflags = compiler.compflags(sourcefile, {target = target}) + local compflags = compiler.compflags(sourcefile, {target = target, sourcekind = sourcekind}) if not firstcompflags and (sourcekind == "cc" or sourcekind == "cxx" or sourcekind == "cu") then firstcompflags = compflags end |
