diff --git a/var/spack/repos/builtin/packages/icu4c/package.py b/var/spack/repos/builtin/packages/icu4c/package.py index 7f8f02e4808..3766bca23fd 100644 --- a/var/spack/repos/builtin/packages/icu4c/package.py +++ b/var/spack/repos/builtin/packages/icu4c/package.py @@ -72,7 +72,7 @@ def url_for_version(self, version): return url.format(version.dashed, version.underscored) def flag_handler(self, name, flags): - if name == "cxxflags": + if name == "cxxflags" and not self.spec.platform == "windows": # Control of the C++ Standard is via adding the required "-std" # flag to CXXFLAGS in env flags.append(getattr(self.compiler, f"cxx{self.spec.variants['cxxstd'].value}_flag")) @@ -125,7 +125,7 @@ def msbuild_args(self): @property def build_directory(self): solution_path = pathlib.Path(self.pkg.stage.source_path) - if self.spec.satsifies("@:67"): + if self.spec.satisfies("@:67"): solution_path = solution_path / "icu" solution_path = solution_path / "source" / "allinone" return str(solution_path)