Fix out of tree build issue in scons/ieee_754.py
This commit is contained in:
parent
6883f73c0f
commit
0801402dcf
1 changed files with 3 additions and 2 deletions
|
@ -1,9 +1,10 @@
|
|||
import os.path
|
||||
from SCons.Script import File
|
||||
|
||||
def CheckIEEE754(context):
|
||||
context.Message("Checking if floating point numbers are in the IEEE 754 format... ")
|
||||
test_file = open(os.path.join("src", "compile_time_tests", "ieee_754.cpp"))
|
||||
ret, _ = context.TryRun(test_file.read(), ".cpp")
|
||||
test_file = File(os.path.join("src", "compile_time_tests", "ieee_754.cpp")).get_contents()
|
||||
ret, _ = context.TryRun(test_file, ".cpp")
|
||||
context.Result(ret)
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue