This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Doesn't use builtins | |
execlp("sh", "/bin/sh", "-c", "cd \"$1\"; shift; \"$@\"", "sh", path_to_cd, "env", arguments, NULL); | |
// Uses builtins | |
execlp("sh", "/bin/sh", "-c", "cd \"$1\"; shift; \"$@\"", "sh", path_to_cd, arguments, NULL); | |
// Doesn't use builtins and execs, avoiding dangling shell | |
execlp("sh", "/bin/sh", "-c", "cd \"$0\"; exec \"$@\"", path_to_cd, arguments, NULL); |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cmake .. -DENABLE_QT2=false | |
-- The C compiler identification is AppleClang 9.0.0.9000037 | |
-- The CXX compiler identification is AppleClang 9.0.0.9000037 | |
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc | |
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Detecting C compile features | |
-- Detecting C compile features - done | |
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ |