diff options
-rw-r--r-- | source4/build/scons/pidl.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/build/scons/pidl.py b/source4/build/scons/pidl.py index 0c5c16b0b5..e225e7ce9c 100644 --- a/source4/build/scons/pidl.py +++ b/source4/build/scons/pidl.py @@ -40,7 +40,7 @@ tdr_builder = SCons.Builder.Builder(action='$TDRCOM', scanner = idl_scanner) def generate(env): - env['PIDL'] = env.Detect(['./pidl/pidl', 'pidl']) + env['PIDL'] = env.WhereIs('pidl', ['pidl']) env['NDRFLAGS'] = ['--outputdir', 'librpc/gen_ndr','--ndr-header', '--ndr-parser','--header'] env['TDRFLAGS'] = ['--tdr-parser', '--tdr-header','--header'] env['NDRCOM'] = '$PIDL $NDRFLAGS -- $SOURCES' @@ -49,4 +49,4 @@ def generate(env): env['BUILDERS']['TdrMarshaller'] = tdr_builder def exists(env): - return env.Detect(['./pidl/pidl','pidl']) + return env.WhereIs('pidl', ['pidl']) |