repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
pytrainer: unpin python 3.10
[NixPkgs.git]
/
pkgs
/
build-support
/
cc-wrapper
/
add-clang-cc-cflags-before.sh
blob
ecbe3d477fa1ab259722af3199dc1206228e3fed
1
needsTarget
=
true
2
3
for
p
in
"
${params[@]}
"
;
do
4
case
"
$p
"
in
5
-target
|
--target
=*)
needsTarget
=
false
;;
6
esac
7
done
8
9
if
$needsTarget
&& [[
$0
!= *
cpp
]];
then
10
extraBefore
+=(
-target
@defaultTarget@ @machineFlags@
)
11
fi