Skip to content

Commit

Permalink
Builds & Tests for Apple-x86
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiker committed Dec 13, 2023
1 parent 3674307 commit 3b897b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deps/das2C
Submodule das2C updated 1 files
+1 −1 das2/credentials.c
7 changes: 4 additions & 3 deletions makefiles/Darwin.mak
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ endif

# Directory containing das2 with contains core.h
ifeq ($(I_DAS2),)
I_DAS2=$(HOME)/git/das2C
I_DAS2=deps/das2C
endif

# Library locations ###########################################################
Expand Down Expand Up @@ -60,14 +60,15 @@ P_SUFFIX=so
# #include scheme
SRCS=das2c.c das2c_message.c das2c_db.c das2c_srclist.c das2c_readhttp.c \
das2c_results.c das2c_dsinfo.c das2c_datasets.c das2c_pdims.c das2c_vars.c \
das2c_props.c das2c_data.c das2c_free.c
das2c_props.c das2c_data.c das2c_free.c das2c_creds.c

SRCS_IN=$(patsubst %, src/%, $(SRCS))

# Composite Defs ##############################################################

CC=clang
CFLAGS=-g -std=c99 -arch x86_64 -Wall -I$(I_IDL) -I$(I_DAS2)
#CFLAGS=-g -std=c99 -arch x86_64 -Wall -I$(I_IDL) -I$(I_DAS2)
CFLAGS=-O2 -DNDEBUG -std=c99 -arch x86_64 -Wall -I$(I_IDL) -I$(I_DAS2)

STATIC_LIBS=$(L_DAS2) $(L_FFTW3) $(L_EXPAT) $(L_SSL) $(L_CRYPTO) $(L_Z)
LFLAGS=-undefined dynamic_lookup -Wl,-no_compact_unwind $(STATIC_LIBS) $(DYN_LIBS)
Expand Down
2 changes: 1 addition & 1 deletion src/das2c_creds.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ static IDL_VPTR das2c_api_credset(int argc, IDL_VPTR* argv)
char sUser[128] = {'\0'};
char sPass[128] = {'\0'};

if((argc == 5))
if(argc == 5)
das2c_IdlMsgExit("Must supply a password when providing a username");

if(argc > 5){
Expand Down

0 comments on commit 3b897b0

Please sign in to comment.