Skip to content

Commit a348515

Browse files
author
thientc
committed
fix environment variable
1 parent 02d51c0 commit a348515

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed
0 Bytes
Binary file not shown.
-13 Bytes
Binary file not shown.

src/python/futag-package/src/futag/preprocessor.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,6 @@ def build_configure(self) -> bool:
379379
print(LIB_ANALYZING_COMMAND, " ".join(p.args))
380380
output, errors = p.communicate()
381381

382-
p = Popen(analysis_command, stdout=PIPE,
383-
stderr=PIPE, universal_newlines=True)
384-
385-
output, errors = p.communicate()
386382
if p.returncode:
387383
print(errors)
388384
sys.exit(LIB_ANALYZING_FAILED)
@@ -405,9 +401,9 @@ def build_configure(self) -> bool:
405401
# Doing make for building
406402

407403
my_env = os.environ.copy()
408-
my_env["CFLAGS"] ="'" + self.flags + "'"
409-
my_env["CPPFLAGS"] ="'" + self.flags + "'"
410-
my_env["LDFLAGS"] ="'" + self.flags + "'"
404+
my_env["CFLAGS"] =self.flags
405+
my_env["CPPFLAGS"] =self.flags
406+
my_env["LDFLAGS"] =self.flags
411407
my_env["CC"] = (self.futag_llvm_package / 'bin/clang').as_posix()
412408
my_env["CXX"] = (self.futag_llvm_package / 'bin/clang++').as_posix()
413409
# my_env["ASAN_OPTIONS="] = "handle_segv=0;detect_leaks=0"

0 commit comments

Comments
 (0)