Skip to content

Commit

Permalink
swig: -FS, attempt conan-io#3
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur authored and jmarrec committed Jan 29, 2024
1 parent 23fc2f4 commit fea8e4a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions recipes/swig/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,9 @@ def generate(self):
tc.extra_defines.append("HAVE_UNISTD_H=1")
elif self.settings.os == "Windows":
if is_msvc(self):
env.define("CC", "cccl")
env.define("CXX", "cccl")
self.output.warning("Visual Studio compiler cannot create ccache-swig. Disabling ccache-swig.")
env.define("CC", "cccl -FS")
env.define("CXX", "cccl -FS")
tc.configure_args.append("--disable-ccache")
tc.extra_cflags.append("-FS")
tc.extra_cxxflags.append("-FS")
else:
tc.extra_ldflags.append("-static")
tc.configure_args.append("LIBS=-lmingwex -lssp")
Expand Down

0 comments on commit fea8e4a

Please sign in to comment.