summaryrefslogtreecommitdiffstats
path: root/SCons/SConfTests.py
diff options
context:
space:
mode:
authorJoseph Brill <48932340+jcbrill@users.noreply.github.com>2023-11-24 15:50:13 (GMT)
committerJoseph Brill <48932340+jcbrill@users.noreply.github.com>2023-11-24 15:50:13 (GMT)
commitedc14d6647d3819a9c6ee076ccc3c65f2283600b (patch)
treebd702fd1cc6eb7ed504f38e0248fbc7bcfc87903 /SCons/SConfTests.py
parentb760704543953ca82a9d9a422667394c4fcb39b9 (diff)
downloadSCons-edc14d6647d3819a9c6ee076ccc3c65f2283600b.zip
SCons-edc14d6647d3819a9c6ee076ccc3c65f2283600b.tar.gz
SCons-edc14d6647d3819a9c6ee076ccc3c65f2283600b.tar.bz2
Fix 4320: add an optional argument list string to the configure CheckFunc method.
Add an optional argument list string so the generated function argument list matches the function's prototype when including a header file.
Diffstat (limited to 'SCons/SConfTests.py')
-rw-r--r--SCons/SConfTests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/SCons/SConfTests.py b/SCons/SConfTests.py
index 2903ba6..6e9aa62 100644
--- a/SCons/SConfTests.py
+++ b/SCons/SConfTests.py
@@ -676,6 +676,8 @@ int main(void) {
assert r, "did not find strcpy"
r = sconf.CheckFunc('strcpy', '/* header */ char strcpy();')
assert r, "did not find strcpy"
+ r = sconf.CheckFunc('strcpy', header='/* header */ char *strcpy(char *dest, char *src);', funcargs='"", ""')
+ assert r, "did not find strcpy"
r = sconf.CheckFunc('hopefullynofunction')
assert not r, "unexpectedly found hopefullynofunction"