From cf0e4996b8411f3e97256201684b7eb4852420c8 Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Wed, 25 Jan 2017 22:45:29 +0000 Subject: [PATCH] Fix makefile print --- src/build_file.py | 2 +- src/preprocessed_text.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/build_file.py b/src/build_file.py index 80ceef4..8094f12 100644 --- a/src/build_file.py +++ b/src/build_file.py @@ -143,7 +143,7 @@ def create_build_link(t, l_irp_m, l_usr_m, l_ext_m, ninja=True): result_make = '\n'.join([ "{target}:{target_o} {irp_lib} | {list_of_module}", - '\t@printf "Link {short_target}\\n"', + '\t@printf "Link: {short_target}\\n"', "\t@$(FC) $^ $(LIB) -o $@", ""]) diff --git a/src/preprocessed_text.py b/src/preprocessed_text.py index e24fea3..75e6308 100644 --- a/src/preprocessed_text.py +++ b/src/preprocessed_text.py @@ -883,6 +883,7 @@ def remove_ifdefs(text): ###################################################################### def check_OpenMP(text): + 'Not working!' assert type(text) == list inside_openmp = False for line in text: @@ -895,8 +896,8 @@ def check_OpenMP(text): elif buffer[1] == "end" and buffer[2] == "parallel": inside_openmp = False - if inside_openmp and isinstance(line, (Provide_all, Provide, Touch, SoftTouch)): - logger.error("%s is not allowed in an OpenMP block: %s" % (type(line),line)) +# if inside_openmp and isinstance(line, (Provide_all, Provide, Touch, SoftTouch)): +# logger.error("%s is not allowed in an OpenMP block: %s" % (type(line),line)) return text