Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
force clang 16
Browse files Browse the repository at this point in the history
  • Loading branch information
aakropotkin committed Aug 31, 2023
1 parent a5b9495 commit 85254b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@ CXXFLAGS ?= $(EXTRA_CFLAGS) $(EXTRA_CXXFLAGS)
CXXFLAGS += '-I$(MAKEFILE_DIR)/include'
CXXFLAGS += '-DFLOX_PKGDB_VERSION="$(VERSION)"'
LDFLAGS ?= $(EXTRA_LDFLAGS)
lib_CXXFLAGS ?= -shared -fPIC
ifeq (Linux,$(OS))
lib_LDFLAGS ?= -shared -fPIC -Wl,--no-undefined
SHARED = -shared
else
lib_LDFLAGS ?= -shared -fPIC -Wl,-undefined,error
SHARED =
endif
lib_CXXFLAGS ?= $(SHARED) -fPIC
lib_LDFLAGS ?= $(SHARED) -fPIC -Wl,-undefined,error
bin_CXXFLAGS ?=
bin_LDFLAGS ?=

Expand Down
5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@
] ++ nixpkgs.lib.optionals pkgsFor.stdenv.isLinux [
# For debugging
pkgsFor.valgrind
] ++ nixpkgs.lib.optionals (
( pkgsFor.stdenv.hostPlatform.useLLVM or false ) ||
( pkgsFor.stdenv.hostPlatform.isDarwin or false )
) [
pkgsFor.clang_16
];
inherit (pkgsFor.flox-pkgdb)
nix_INCDIR boost_CFLAGS libExt SEMVER_PATH
Expand Down

0 comments on commit 85254b6

Please sign in to comment.