Skip to content

Commit

Permalink
scc: fix MSVC build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Jan 23, 2024
1 parent ecce3d6 commit 2500f75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipes/scc/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ def _patch_sources(self):
apply_conandata_patches(self)
replace_in_file(self, os.path.join(self.source_folder, "third_party", "axi_chi", "CMakeLists.txt"),
" STATIC", "")
if is_msvc(self):
# Fix duplicate definition by `template<> struct value_converter<sc_dt::uint64>`
# https://github.com/Minres/LWTR4SC/blob/03d52fc4e704d62377d1b1073fc45b2b22512654/src/lwtr/lwtr.h#L137-L172
lwtr_h = os.path.join(self.source_folder, "third_party", "lwtr4sc", "src", "lwtr", "lwtr.h")
replace_in_file(self, lwtr_h, "VAL_CONV(int64_t);", "")
replace_in_file(self, lwtr_h, "VAL_CONV(uint64_t);", "")

def build(self):
self._patch_sources()
Expand Down

0 comments on commit 2500f75

Please sign in to comment.