summaryrefslogtreecommitdiff
path: root/libcmark-gfm/libcmark-gfm/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'libcmark-gfm/libcmark-gfm/buildfile')
-rw-r--r--libcmark-gfm/libcmark-gfm/buildfile9
1 files changed, 2 insertions, 7 deletions
diff --git a/libcmark-gfm/libcmark-gfm/buildfile b/libcmark-gfm/libcmark-gfm/buildfile
index 0d80f53..ec95650 100644
--- a/libcmark-gfm/libcmark-gfm/buildfile
+++ b/libcmark-gfm/libcmark-gfm/buildfile
@@ -9,16 +9,11 @@ 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.
#
h{version}: src/in{cmark-gfm_version} $src_root/manifest
-h{version}:
{
in.symbol = '@'
@@ -33,7 +28,7 @@ h{version}:
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
@@ -43,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