How can I check if a function exists in waf?
Chris Johns
chrisj at rtems.org
Sat Feb 2 20:19:50 UTC 2019
On 2/2/19 9:12 pm, Sebastian Huber wrote:
> ----- Am 2. Feb 2019 um 2:07 schrieb Chris Johns chrisj at rtems.org:
>> On 1/2/19 8:19 pm, Sebastian Huber wrote:
>>>
>>> So, this test uses already quite some code and still is basically useless.
>>
>> You have a powerful language available. I would create a function to handle
>> repeated checks, for example:
>>
>> https://git.rtems.org/chrisj/rtems_waf.git/tree/rtems.py?h=libbsd-libdl#n270
>>
>> I think having the ability to perform checks for an RTEMS application highlights
>> the power available.
>
> Yes, I don't doubt that you can do a lot of things with Python, but it was a bit surprising to me that I have to write custom code for things which are covered by basic Autoconf macros and only because Microsoft is not able to ship an operating system with a strnlen() function.
Sure, this is a good question. I can only suggest you raise an issue in gitlab
to see what Thomas says. A patch may even work and be merged.
Chris
More information about the devel
mailing list