From 2249beae2c6ef584cd9c05d7876a39e2b17494b6 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 29 Nov 2019 11:21:06 +0300 Subject: Use switch in buildfile --- libcmark-gfm/libcmark-gfm/buildfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'libcmark-gfm') diff --git a/libcmark-gfm/libcmark-gfm/buildfile b/libcmark-gfm/libcmark-gfm/buildfile index 7bd499a..ec95650 100644 --- a/libcmark-gfm/libcmark-gfm/buildfile +++ b/libcmark-gfm/libcmark-gfm/buildfile @@ -9,10 +9,6 @@ lib{cmark-gfm}: {h }{* -version} \ {h }{ version} \ src/{h inc c}{* -main} -windows = ($c.target.class == 'windows') - -gcc = ($c.class == 'gcc') - # No need to include the generated version header into the distribution since # it is installed under a different name and so the correct one will always # be picked up. @@ -32,7 +28,7 @@ h{version}: src/in{cmark-gfm_version} $src_root/manifest obja{*}: c.poptions += -DCMARK_GFM_STATIC_BUILD objs{*}: c.poptions += -DCMARK_GFM_SHARED_BUILD -if! $windows +if ($c.target.class != 'windows') c.coptions += -fvisibility=hidden else c.poptions += -DWIN32 -D_WINDOWS @@ -42,7 +38,7 @@ else # c.poptions =+ "-I$out_root" "-I$src_root" "-I$src_base" "-I$src_base/src" -if $gcc +if ($c.class == 'gcc') { c.coptions += -pedantic -- cgit v1.1