From 990c6c0c8a42ff0fe8fb9bcbf0f8aa6d3e1ab41f Mon Sep 17 00:00:00 2001 From: Tim Haines Date: Wed, 26 Nov 2025 21:41:33 -0600 Subject: [PATCH] Don't double-quote cxxflags passed to b2 b2 already quotes them, so passing multiple values causes them to be passed to the compiler as a quoted string like '-fFoo -fBar'. --- repos/spack_repo/builtin/packages/boost/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/spack_repo/builtin/packages/boost/package.py b/repos/spack_repo/builtin/packages/boost/package.py index d8b0442b034..85f7fcd4515 100644 --- a/repos/spack_repo/builtin/packages/boost/package.py +++ b/repos/spack_repo/builtin/packages/boost/package.py @@ -748,7 +748,7 @@ def determine_b2_options(self, spec, options): cxxflags.append("-DBOOST_STACKTRACE_LIBCXX_RUNTIME_MAY_CAUSE_MEMORY_LEAK") if cxxflags: - options.append('cxxflags="{0}"'.format(" ".join(cxxflags))) + options.append("cxxflags={0}".format(" ".join(cxxflags))) # Visibility was added in 1.69.0. if spec.satisfies("@1.69.0:"):