Skip to content

Commit

Permalink
[SCons] add AR config option (e.g. to set llvm-ar instead of ar)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
  • Loading branch information
band-a-prend authored and ischoegl committed Jan 21, 2023
1 parent 1fa20b7 commit 760b0fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SConstruct
Expand Up @@ -202,6 +202,10 @@ windows_options = [
]

config_options = [
Option(
"AR",
"The archiver to use.",
"${AR}"),
Option(
"CXX",
"The C++ compiler to use.",
Expand Down Expand Up @@ -848,7 +852,7 @@ else:

add_RegressionTest(env)

opts.AddVariables(*config.to_scons(["CC", "CXX"], env=env))
opts.AddVariables(*config.to_scons(["AR", "CC", "CXX"], env=env))
opts.Update(env)

# Check if this is actually Apple's clang on macOS
Expand Down

0 comments on commit 760b0fb

Please sign in to comment.