Re: [OpenSmalltalk/opensmalltalk-vm] Use C99 (5e13635)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Use C99 (5e13635)

David T Lewis
 

Today's xkcd (related to the commit message)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenSmalltalk/opensmalltalk-vm","title":"OpenSmalltalk/opensmalltalk-vm","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm"}},"updates":{"snippets":[{"icon":"PERSON","message":"@fniephaus on 5e13635: [Today's xkcd](https://xkcd.com/1959/) (related to the commit message)"}],"action":{"name":"View Commit","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/5e136355c1e4bcaf73764a9df20a010151fa9120#commitcomment-27744996"}}}</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Use C99 (5e13635)

David T Lewis
 

Hi Tobias, why not take this opportunity to make the compiler specifiable? Something simple like
...
if [ -z "$CC" ]; then
CC=c99
fi
...
CC="$CC -m64"


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenSmalltalk/opensmalltalk-vm","title":"OpenSmalltalk/opensmalltalk-vm","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm"}},"updates":{"snippets":[{"icon":"PERSON","message":"@eliotmiranda on 5e13635: Hi Tobias, why not take this opportunity to make the compiler specifiable? Something simple like\r\n...\r\nif [ -z \"$CC\" ]; then\r\n CC=c99\r\nfi\r\n...\r\nCC=\"$CC -m64\""}],"action":{"name":"View Commit","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/5e136355c1e4bcaf73764a9df20a010151fa9120#commitcomment-27767072"}}}</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Use C99 (5e13635)

David T Lewis
In reply to this post by David T Lewis
 

Yeah, but the "correct way would rather be instead of

test -f config.h || ../../../platforms/unix/config/configure --without-npsqueak \
		--with-vmversion=5.0 \
		--with-src=spursrc \
	CC="c99 -m32" \
	CXX="g++ -m32" \
	CFLAGS="$OPT -msse2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DCOGMTVM=0" \
	LIBS="-lpthread -luuid" \
	LDFLAGS=-Wl,-z,now
...
export VMDEFS=" -msse2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DCOGMTVM=0"

export CPPFLAGS="${CPPFLAGS} ${ARCHFLAGS:=-m32}"
export LDFLAGS="${LDFLAGS} ${ARCHFLAGS:=-m32}"
export CFLAGS="${CFLAGS} ${OPT} ${VMDEFS}"
export CC="${CC:=c99}"
export LIBS="-lpthread -luuid"

test -f config.h || ../../../platforms/unix/config/configure --without-npsqueak \
		--with-vmversion=5.0 \
		--with-src=spursrc


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenSmalltalk/opensmalltalk-vm","title":"OpenSmalltalk/opensmalltalk-vm","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm"}},"updates":{"snippets":[{"icon":"PERSON","message":"@krono on 5e13635: Yeah, but the \"correct way would rather be instead of\r\n\r\n```bash\r\ntest -f config.h || ../../../platforms/unix/config/configure --without-npsqueak \\\r\n\t\t--with-vmversion=5.0 \\\r\n\t\t--with-src=spursrc \\\r\n\tCC=\"c99 -m32\" \\\r\n\tCXX=\"g++ -m32\" \\\r\n\tCFLAGS=\"$OPT -msse2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DCOGMTVM=0\" \\\r\n\tLIBS=\"-lpthread -luuid\" \\\r\n\tLDFLAGS=-Wl,-z,now\r\n```\r\n\r\n\r\n\r\n```bash\r\n...\r\nexport VMDEFS=\" -msse2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DCOGMTVM=0\"\r\n\r\nexport CPPFLAGS=\"${CPPFLAGS} ${ARCHFLAGS:=-m32}\"\r\nexport LDFLAGS=\"${LDFLAGS} ${ARCHFLAGS:=-m32}\"\r\nexport CFLAGS=\"${CFLAGS} ${OPT} ${VMDEFS}\"\r\nexport CC=\"${CC:=c99}\"\r\nexport LIBS=\"-lpthread -luuid\"\r\n\r\ntest -f config.h || ../../../platforms/unix/config/configure --without-npsqueak \\\r\n\t\t--with-vmversion=5.0 \\\r\n\t\t--with-src=spursrc\r\n```\r\n"}],"action":{"name":"View Commit","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/5e136355c1e4bcaf73764a9df20a010151fa9120#commitcomment-27767366"}}}</script>