lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> I need to find out if the user has either Clang or GCC installed

If so, then there is probably a link to cc. So try this:

print(os.execute("cc >/dev/null"))
print(os.execute("true >/dev/null"))

On my Mac running El Captain this outputs

nil exit 1
true exit 0