From 0e3f1021cc14e2616086e69019de1cc67ba55dc1 Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Sun, 1 Jan 2023 20:13:03 +0100 Subject: frontend - add documentation --- src_doit/c.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src_doit/c.py') diff --git a/src_doit/c.py b/src_doit/c.py index d365826..ecbd498 100644 --- a/src_doit/c.py +++ b/src_doit/c.py @@ -1,4 +1,5 @@ from pathlib import Path +import os from hat.doit import common from hat.doit.c import (get_lib_suffix, @@ -19,7 +20,8 @@ build_c_dir = build_dir / 'c' platforms = [common.local_platform] if common.local_platform == common.Platform.LINUX_GNU_X86_64: - platforms.append(common.Platform.WINDOWS_AMD64) + if 'SKIP_CROSS_COMPILE' not in os.environ: + platforms.append(common.Platform.WINDOWS_AMD64) cc_flags = ['-fPIC', '-O2'] # cc_flags = ['-fPIC', '-O0', '-ggdb'] -- cgit v1.2.3-70-g09d2