Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/posix.mak
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
################################################################################
# Important variables:
# --------------------
#
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The formatting is off on these comments - perhaps you're using tabs?

# HOST_CSS: Host C++ compiler to use (g++,clang++)
# HOST_DMD: Host D compiler to use for bootstrapping
# AUTO_BOOTSTRAP: Enable auto-boostrapping by download a stable DMD binary
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/download/downloading/

# INSTALL_DIR: Installation folder to use
#
################################################################################
# Build modes:
# ------------
# BUILD: release (default) | debug (enabled a build with debug symbols)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably ought to say that this is intended to be set on the command line

#
# Opt-in build features:
#
# ENABLE_RELEASE: Optimized release built (set by BUILD=release)
# ENABLE_DEBUG: Add debug instructions and symbols (set by BUILD=debug)
# ENABLE_WARNINGS: Enable C++ build warnings
# ENABLE_PROFILING: Build dmd with a profiling recorder (C++)
# ENABLE_PGO_USE: Build dmd with existing profiling information (C++)
# PGO_DIR: Directory for profile-guided optimization (PGO) logs
# ENABLE_LTO: Enable link-time optimizations
# ENABLE_UNITTEST: Build dmd with unittests (sets ENABLE_COVERAGE=1)
# ENABLE_PROFILE: Build dmd with a profiling recorder (D)
# ENABLE_COVERAGE Build dmd with coverage counting
################################################################################

# get OS and MODEL
include osmodel.mak

Expand Down Expand Up @@ -27,6 +55,7 @@ ifneq ($(BUILD),release)
ifneq ($(BUILD),debug)
$(error Unrecognized BUILD=$(BUILD), must be 'debug' or 'release')
endif
ENABLE_DEBUG := 1
endif

GIT_HOME=https://github.com/dlang
Expand Down