1389 |
context.env.AppendUnique(LIBS=['m']) |
context.env.AppendUnique(LIBS=['m']) |
1390 |
is_ok=context.TryLink(math_test_text,".c") |
is_ok=context.TryLink(math_test_text,".c") |
1391 |
context.Result(is_ok) |
context.Result(is_ok) |
1392 |
if not is_ok: |
if libsave is None: |
1393 |
|
del(context.env['LIBS']) |
1394 |
|
else: |
1395 |
context.env['LIBS']=libsave |
context.env['LIBS']=libsave |
1396 |
return is_ok |
return is_ok |
1397 |
|
|
1651 |
int main(){ |
int main(){ |
1652 |
Number n; |
Number n; |
1653 |
IpoptProblem nlp = 0; |
IpoptProblem nlp = 0; |
1654 |
|
n = 1; |
1655 |
FreeIpoptProblem(nlp); // probably a crash if you run this |
FreeIpoptProblem(nlp); // probably a crash if you run this |
1656 |
return 0; |
return 0; |
1657 |
} |
} |
1890 |
|
|
1891 |
def CheckSigReset(context): |
def CheckSigReset(context): |
1892 |
context.Message("Checking signal handler reset... ") |
context.Message("Checking signal handler reset... ") |
1893 |
|
libsave=context.env.get('LIBS') |
1894 |
|
context.env.AppendUnique(LIBS=['m']) |
1895 |
(is_ok,output) = context.TryRun(sigreset_test_text,'.c') |
(is_ok,output) = context.TryRun(sigreset_test_text,'.c') |
1896 |
|
|
1897 |
|
if libsave is None: |
1898 |
|
del(context.env['LIBS']) |
1899 |
|
else: |
1900 |
|
context.env['LIBS']=libsave |
1901 |
|
|
1902 |
if not is_ok: |
if not is_ok: |
1903 |
context.Result("ERROR") |
context.Result("ERROR") |
1904 |
return False |
return False |
2348 |
|
|
2349 |
conf.Finish() |
conf.Finish() |
2350 |
|
|
2351 |
|
print "-=-=-=-=-=-=-=-=- LIBS =",env.get('LIBS') |
2352 |
|
|
2353 |
#--------------------------------------- |
#--------------------------------------- |
2354 |
# SUBSTITUTION DICTIONARY for .in files |
# SUBSTITUTION DICTIONARY for .in files |
2355 |
|
|